mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
AP_HAL: use enum for flash_bootloader() result
This commit is contained in:
parent
2215fbd7a4
commit
0ca4b589a7
@ -90,8 +90,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual uint64_t get_hw_rtc() const;
|
virtual uint64_t get_hw_rtc() const;
|
||||||
|
|
||||||
|
enum class FlashBootloader {
|
||||||
|
OK=0,
|
||||||
|
NO_CHANGE=1,
|
||||||
|
FAIL=2,
|
||||||
|
NOT_AVAILABLE=3,
|
||||||
|
};
|
||||||
|
|
||||||
// overwrite bootloader (probably with one from ROMFS)
|
// overwrite bootloader (probably with one from ROMFS)
|
||||||
virtual bool flash_bootloader() { return false; }
|
virtual FlashBootloader flash_bootloader() { return FlashBootloader::NOT_AVAILABLE; }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
get system identifier (eg. serial number)
|
get system identifier (eg. serial number)
|
||||||
|
Loading…
Reference in New Issue
Block a user