mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
AP_Button: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
3fcf430a2c
commit
001e516fa7
@ -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{
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user