Kobo, Sage: better power cover detection (#8894)

reviewable/pr8907/r1
zwim 2 years ago committed by GitHub
parent 217a73f3c0
commit 6a240b7d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,7 +106,11 @@ function KoboPowerD:init()
end
self.isAuxBatteryConnectedHW = function(this)
return this:read_int_file(this.aux_batt_connected_file) == 1
-- aux_batt_connected_file shows us:
-- 0 if power cover is not connected
-- 1 if the power cover is connected
-- 1 or sometimes -1 if the power cover is connected without a charger
return this:read_int_file(this.aux_batt_connected_file) ~= 0
end
self.isAuxChargingHW = function(this)

Loading…
Cancel
Save