Skip to content
Snippets Groups Projects
Commit 834a9721 authored by Martin Teichmann's avatar Martin Teichmann
Browse files

add a method to change the watchdog timings

parent 9c8f89bd
No related branches found
No related tags found
No related merge requests found
Pipeline #155605 failed
...@@ -602,6 +602,11 @@ class Terminal: ...@@ -602,6 +602,11 @@ class Terminal:
sm = await self.read(0x800, data=0x80) sm = await self.read(0x800, data=0x80)
self.parse_sync_managers(sm) self.parse_sync_managers(sm)
async def set_watchdog(self, pdi, process):
"""set the watchdog time for the PDI and process data watchdog"""
await self.write(0x410, 'H', pdi)
await self.write(0x420, 'H', process)
async def apply_eeprom(self): async def apply_eeprom(self):
await self.read_eeprom() await self.read_eeprom()
if 41 not in self.eeprom: if 41 not in self.eeprom:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment