mirror of
https://github.com/meshtastic/python.git
synced 2026-04-25 17:40:55 -04:00
close power meter gracefully
This commit is contained in:
@@ -73,6 +73,7 @@ class PowerLogger:
|
||||
def close(self) -> None:
|
||||
"""Close the PowerLogger and stop logging."""
|
||||
if self.is_logging:
|
||||
self.pMeter.close()
|
||||
self.is_logging = False
|
||||
self.thread.join()
|
||||
self.writer.close()
|
||||
|
||||
Reference in New Issue
Block a user