AP_Beacon: added const

This commit is contained in:
Andrew Tridgell 2020-11-09 12:27:27 +11:00 committed by Tom Pittenger
parent 8813057b4c
commit 3f4c605361
2 changed files with 4 additions and 4 deletions

View File

@ -109,13 +109,13 @@ void AP_Beacon::init(void)
} }
// return true if beacon feature is enabled // return true if beacon feature is enabled
bool AP_Beacon::enabled(void) bool AP_Beacon::enabled(void) const
{ {
return (_type != AP_BeaconType_None); return (_type != AP_BeaconType_None);
} }
// return true if sensor is basically healthy (we are receiving data) // return true if sensor is basically healthy (we are receiving data)
bool AP_Beacon::healthy(void) bool AP_Beacon::healthy(void) const
{ {
if (!device_ready()) { if (!device_ready()) {
return false; return false;

View File

@ -59,10 +59,10 @@ public:
void init(void); void init(void);
// return true if beacon feature is enabled // return true if beacon feature is enabled
bool enabled(void); bool enabled(void) const;
// return true if sensor is basically healthy (we are receiving data) // return true if sensor is basically healthy (we are receiving data)
bool healthy(void); bool healthy(void) const;
// update state of all beacons // update state of all beacons
void update(void); void update(void);