Commit ffd9bf6 1 parent 80f6191 commit ffd9bf6 Copy full SHA for ffd9bf6
File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ public bool IsConnected()
254
254
return _connected ;
255
255
}
256
256
257
- public AsusACPI ( bool light = false )
257
+ public AsusACPI ( )
258
258
{
259
259
try
260
260
{
@@ -278,8 +278,6 @@ public AsusACPI(bool light = false)
278
278
Logger . WriteLine ( $ "Can't connect to ACPI: { ex . Message } ") ;
279
279
}
280
280
281
- if ( light ) return ;
282
-
283
281
if ( AppConfig . IsAdvantageEdition ( ) )
284
282
{
285
283
MaxTotal = 250 ;
Original file line number Diff line number Diff line change @@ -340,11 +340,11 @@ static void BatteryLimit()
340
340
{
341
341
try
342
342
{
343
- int limit = 80 ;
343
+ int limit = AppConfig . Get ( "charge_limit" ) ;
344
344
if ( limit > 0 && limit < 100 )
345
345
{
346
346
Logger . WriteLine ( $ "------- Startup Battery Limit { limit } -------") ;
347
- acpi = new AsusACPI ( true ) ;
347
+ acpi = new AsusACPI ( ) ;
348
348
acpi . DeviceSet ( AsusACPI . BatteryLimit , limit , "Limit" ) ;
349
349
}
350
350
}
You can’t perform that action at this time.
0 commit comments