mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -6,16 +6,14 @@ __description__ = 'Refresh he e-ink display after X amount of updates'
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from pwnagotchi.ui.components import LabeledValue
|
|
||||||
from pwnagotchi.ui.view import BLACK
|
|
||||||
import pwnagotchi.ui.fonts as fonts
|
|
||||||
|
|
||||||
OPTIONS = dict()
|
OPTIONS = dict()
|
||||||
update_count = 0;
|
update_count = 0;
|
||||||
|
|
||||||
|
|
||||||
def on_loaded():
|
def on_loaded():
|
||||||
logging.info("Screen refresh plugin loaded")
|
logging.info("Screen refresh plugin loaded")
|
||||||
|
|
||||||
|
|
||||||
def on_ui_update(ui):
|
def on_ui_update(ui):
|
||||||
global update_count
|
global update_count
|
||||||
update_count += 1
|
update_count += 1
|
||||||
@ -24,4 +22,3 @@ def on_ui_update(ui):
|
|||||||
ui.set('status', "Screen cleaned")
|
ui.set('status', "Screen cleaned")
|
||||||
logging.info("Screen refreshing")
|
logging.info("Screen refreshing")
|
||||||
update_count = 0
|
update_count = 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user