mirror of
https://github.com/Crocmagnon/plant-badger.git
synced 2024-12-04 15:13:36 +01:00
Disable display blinking on connection
This commit is contained in:
parent
614ee88c83
commit
ec3551d0cd
1 changed files with 4 additions and 0 deletions
|
@ -42,3 +42,7 @@ class Badger2040(badger2040.Badger2040):
|
||||||
delta = int(minutes * abs(jitter_percentage))
|
delta = int(minutes * abs(jitter_percentage))
|
||||||
minutes += random.randint(-delta, delta)
|
minutes += random.randint(-delta, delta)
|
||||||
self.set_timer_minutes(minutes)
|
self.set_timer_minutes(minutes)
|
||||||
|
|
||||||
|
def status_handler(self, mode, status, ip):
|
||||||
|
# Explicitly doing nothing here, to prevent display blinking.
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in a new issue