MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / run

Method run

pager/pager_display.py:1300–1317  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1298 self.pager.flip()
1299
1300 def run(self):
1301 logger.info("Starting pager display main loop...")
1302 while not self.shared_data.display_should_exit:
1303 try:
1304 if self.dialog_showing:
1305 time.sleep(0.1)
1306 continue
1307 self.check_dim_timeout()
1308 self.display_comment(self.shared_data.ragnarorch_status)
1309 self.shared_data.update_ragnarstatus()
1310 self.update_leds(self.shared_data.ragnarorch_status)
1311 self.render_frame()
1312 time.sleep(0.1)
1313 except Exception as e:
1314 logger.error(f"Error in display loop: {e}")
1315 time.sleep(0.1)
1316 logger.info("Pager display loop exiting...")
1317 self.cleanup()
1318
1319 def cleanup(self):
1320 try:

Callers 2

is_wifi_connectedMethod · 0.45
pager_display.pyFile · 0.45

Calls 9

check_dim_timeoutMethod · 0.95
display_commentMethod · 0.95
update_ledsMethod · 0.95
render_frameMethod · 0.95
cleanupMethod · 0.95
infoMethod · 0.80
update_ragnarstatusMethod · 0.80
errorMethod · 0.80
sleepMethod · 0.45

Tested by

no test coverage detected