Device: Carry bootloader version for potential compatibility checks

This commit is contained in:
Jonathan Schwartz
2026-01-12 17:45:10 -05:00
committed by Kyle Schwarz
parent d74051f57e
commit 8cb62c2cae
4 changed files with 25 additions and 10 deletions
+9
View File
@@ -162,6 +162,14 @@ public:
bool hasBootloader() { return !!getBootloader(); }
virtual bool supportsSwVersionValidate() const {
return true;
}
void setBootloaderVersion(const HardwareInfo::Version& version) {
bootloaderVersion = version;
}
static std::string SerialNumToString(uint32_t serial);
static uint32_t SerialStringToNum(const std::string& serial);
static bool SerialStringIsNumeric(const std::string& serial);
@@ -982,6 +990,7 @@ protected:
LEDState ledState;
void updateLEDState();
std::optional<HardwareInfo::Version> bootloaderVersion = std::nullopt;
private:
neodevice_t data;