AP_Button: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:26 -03:00 committed by Andrew Tridgell
parent 3fcf430a2c
commit 001e516fa7
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ void AP_Button::timer_update(void)
/*
send a BUTTON_CHANGE report to the GCS
*/
void AP_Button::send_report(void)
void AP_Button::send_report(void) const
{
const uint8_t mask = last_mask | pwm_state;
const mavlink_button_change_t packet{

View File

@ -113,7 +113,7 @@ private:
uint8_t get_mask(void);
// send a BUTTON_CHANGE report
void send_report(void);
void send_report(void) const;
// setup pins as pullup input
void setup_pins();