Don't slow down the system clock too much at the top of launcher - there's no need to save battery if the app will switch the badger off when it's finished anyway.
This commit is contained in:
parent
eb95636bca
commit
b78b292ff8
|
@ -2,6 +2,8 @@ import time
|
|||
import machine
|
||||
import badger2040
|
||||
|
||||
# We're going to keep the badger on, so slow down the system clock if on battery
|
||||
badger2040.system_speed(badger2040.SYSTEM_SLOW)
|
||||
|
||||
rtc = machine.RTC()
|
||||
display = badger2040.Badger2040()
|
||||
|
|
|
@ -7,8 +7,8 @@ from badger2040 import WIDTH
|
|||
import launchericons
|
||||
import badger_os
|
||||
|
||||
# Reduce clock speed to 48MHz if on USB or 12MHz if on battery
|
||||
badger2040.system_speed(badger2040.SYSTEM_SLOW)
|
||||
# Reduce clock speed to 48MHz
|
||||
badger2040.system_speed(badger2040.SYSTEM_NORMAL)
|
||||
|
||||
changed = False
|
||||
exited_to_launcher = False
|
||||
|
|
Loading…
Reference in New Issue