mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user