autotest: add AP_COMPASS_LSM303D_ENABLED to must-have drivers for CubeOrange

This commit is contained in:
Peter Barker 2023-01-27 15:51:50 +11:00 committed by Andrew Tridgell
parent 669ce03de3
commit 70b77f0f7d

View File

@ -64,7 +64,10 @@ class TestBuildOptions(object):
def must_have_defines_for_board(self, board):
'''return a set of defines which must always be enabled'''
must_have_defines = {
"CubeOrange": frozenset(['AP_BARO_MS56XX_ENABLED'])
"CubeOrange": frozenset([
'AP_BARO_MS56XX_ENABLED',
'AP_COMPASS_LSM303D_ENABLED',
])
}
return must_have_defines.get(board, frozenset([]))