mirror of https://github.com/ArduPilot/ardupilot
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;
|
||||
|
||||
enum class FlashBootloader {
|
||||
OK=0,
|
||||
NO_CHANGE=1,
|
||||
FAIL=2,
|
||||
NOT_AVAILABLE=3,
|
||||
};
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Reference in New Issue