mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_Button: add and use HAL_BUTTON_ENABLE
This commit is contained in:
parent
4ae3ad555d
commit
c9fd7ee00d
@ -15,6 +15,9 @@
|
||||
|
||||
|
||||
#include "AP_Button.h"
|
||||
|
||||
#if HAL_BUTTON_ENABLED
|
||||
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
@ -400,3 +403,5 @@ AP_Button &button()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -14,6 +14,14 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef HAL_BUTTON_ENABLED
|
||||
#define HAL_BUTTON_ENABLED 1
|
||||
#endif
|
||||
|
||||
#if HAL_BUTTON_ENABLED
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Param/AP_Param.h>
|
||||
|
||||
@ -127,3 +135,5 @@ private:
|
||||
namespace AP {
|
||||
AP_Button &button();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user