@ -20,6 +20,7 @@ end
function BasePowerD : init ( ) end
function BasePowerD : init ( ) end
function BasePowerD : toggleFrontlight ( ) end
function BasePowerD : toggleFrontlight ( ) end
function BasePowerD : setIntensityHW ( ) end
function BasePowerD : setIntensityHW ( ) end
function BasePowerD : setIntensitySW ( ) end
function BasePowerD : getCapacityHW ( ) end
function BasePowerD : getCapacityHW ( ) end
function BasePowerD : isChargingHW ( ) end
function BasePowerD : isChargingHW ( ) end
function BasePowerD : suspendHW ( ) end
function BasePowerD : suspendHW ( ) end
@ -39,6 +40,14 @@ function BasePowerD:setIntensity(intensity)
self : setIntensityHW ( )
self : setIntensityHW ( )
end
end
function BasePowerD : setIntensityWithoutHW ( intensity )
intensity = intensity < self.fl_min and self.fl_min or intensity
intensity = intensity > self.fl_max and self.fl_max or intensity
self.flIntensity = intensity
self : setIntensitySW ( )
end
function BasePowerD : getCapacity ( )
function BasePowerD : getCapacity ( )
if capacity_pulled_count == capacity_cached_count then
if capacity_pulled_count == capacity_cached_count then
capacity_pulled_count = 0
capacity_pulled_count = 0