Add Device:otaModel() (#12014)

Devices with a single target might want to specify it in `Device.ota_model`
Devices with multiple targets want to override the function or to specify `ota_model` variants for each target.
This commit is contained in:
Martín Fernández
2024-06-25 21:35:38 +02:00
committed by GitHub
parent e26fdc7f14
commit 617618d587
9 changed files with 101 additions and 91 deletions

View File

@@ -516,6 +516,12 @@ function Device:simulateResume() end
-- Put device into standby, input devices (buttons, touchscreen ...) stay enabled
function Device:standby(max_duration) end
-- Returns a string, used to determine the platform to fetch OTA updates
function Device:otaModel()
return self.ota_model, "ota"
end
--[[--
Device specific method for performing haptic feedback.