Skip to content

Commit 4242edd

Browse files
committed
AP_HAL: move definition of HAL_WITH_POSTYPE_DOUBLE into AP_HAL_Boards.h
other libraries need to know if we are doing double-precision offsets
1 parent 57c80cd commit 4242edd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/AP_HAL/AP_HAL_Boards.h

+4
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,8 @@
381381
#error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON"
382382
#endif
383383

384+
#ifndef HAL_WITH_POSTYPE_DOUBLE
385+
#define HAL_WITH_POSTYPE_DOUBLE BOARD_FLASH_SIZE > 1024
386+
#endif
387+
384388
#define HAL_GPIO_LED_OFF (!HAL_GPIO_LED_ON)

0 commit comments

Comments
 (0)