mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-16 07:03:18 +08:00
Add watchdog ticks command.
- ToDo : Fix watchdog states.
This commit is contained in:

committed by
Chris Johns

parent
04d95ec2b2
commit
a7176a8a7e
@@ -12,11 +12,6 @@ import objects
|
||||
|
||||
class state:
|
||||
|
||||
INACTIVE = 0
|
||||
BEING_INSERTED = 1
|
||||
ACTIVE = 2
|
||||
REMOVE_IT = 3
|
||||
|
||||
states = {
|
||||
0: 'inactive',
|
||||
1: 'being-inserted',
|
||||
@@ -35,9 +30,10 @@ class control:
|
||||
def __init__(self, ctrl):
|
||||
self.ctrl = ctrl
|
||||
|
||||
# Not sure if an extra class is needed.
|
||||
# ToDo: fix this.1
|
||||
def state(self):
|
||||
return state(int(self.ctrl['state'])).to_string()
|
||||
return state(1).to_string()
|
||||
#return state(int(self.ctrl['state'])).to_string()
|
||||
|
||||
def initial(self):
|
||||
return self.ctrl['initial']
|
||||
|
Reference in New Issue
Block a user