Skip to content

Commit

Permalink
add battery events
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Oct 23, 2023
1 parent 2863bd6 commit 5367c77
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions py_vista_turbo_serial/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,13 @@ class FaultEvent(SystemEvent):
class FaultRestoreEvent(SystemEvent):
NAME: str = 'Fault Restore'
CODE: int = 0x2c


class LowBatteryExtended(SystemEvent):
NAME: str = 'Low Battery'
CODE: int = 0x29


class LowBatteryRestoreExtended(SystemEvent):
NAME: str = 'Low Battery Restore'
CODE: int = 0x2a

0 comments on commit 5367c77

Please sign in to comment.