Device: Add supportsCoreminiScript()

liveDataSetValue
Yasser Yassine 2025-06-06 19:29:42 +00:00 committed by Kyle Schwarz
parent 245073f9d5
commit 33dea748f7
2 changed files with 5 additions and 1 deletions

View File

@ -181,6 +181,10 @@ public:
return std::nullopt;
}
bool supportsCoreminiScript() const {
return (getCoreminiStartAddressFlash()) || (getCoreminiStartAddressSD());
}
std::optional<MemoryAddress> getCoreminiStartAddress(Disk::MemoryType memType) const {
switch(memType) {
case Disk::MemoryType::Flash:

View File

@ -690,7 +690,7 @@ public:
IDeviceSettings(std::shared_ptr<Communication> com, size_t size) : com(com), report(com->report), structSize(size) {}
virtual ~IDeviceSettings() {}
bool ok() { return !disabled && settingsLoaded; }
bool ok() const { return !disabled && settingsLoaded; }
virtual bool refresh(bool ignoreChecksum = false); // Get from device