AP_Scripting: add and use HAL_BUTTON_ENABLE

This commit is contained in:
Peter Barker 2021-08-12 13:38:19 +10:00 committed by Andrew Tridgell
parent c9fd7ee00d
commit 9dd02f0c2b

View File

@ -331,6 +331,7 @@ singleton AP_RPM alias RPM
singleton AP_RPM method get_rpm boolean uint8_t 0 RPM_MAX_INSTANCES float'Null singleton AP_RPM method get_rpm boolean uint8_t 0 RPM_MAX_INSTANCES float'Null
include AP_Button/AP_Button.h include AP_Button/AP_Button.h
singleton AP_Button depends HAL_BUTTON_ENABLED == 1
singleton AP_Button alias button singleton AP_Button alias button
singleton AP_Button method get_button_state boolean uint8_t 1 AP_BUTTON_NUM_PINS singleton AP_Button method get_button_state boolean uint8_t 1 AP_BUTTON_NUM_PINS