mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
fix: Raise error on connect 4 when using wd_toggle function
On the Connect 4, the hardware watchdog was removed from the process image by KUNBUS. To use the hardware watchdog, other functions must now be used that are not implemented by RevPiModIO.
This commit is contained in:
@@ -1423,6 +1423,13 @@ class Connect4(ModularBase):
|
|||||||
else:
|
else:
|
||||||
raise ValueError("led status must be between 0 and 7")
|
raise ValueError("led status must be between 0 and 7")
|
||||||
|
|
||||||
|
def wd_toggle(self):
|
||||||
|
"""Toggle watchdog bit to prevent a timeout."""
|
||||||
|
raise NotImplementedError(
|
||||||
|
"On the Connect 4, the hardware watchdog was removed from the process image by "
|
||||||
|
"KUNBUS. This function is no longer available on Connect 4 devices."
|
||||||
|
)
|
||||||
|
|
||||||
A1 = property(_get_leda1, _set_leda1)
|
A1 = property(_get_leda1, _set_leda1)
|
||||||
A2 = property(_get_leda2, _set_leda2)
|
A2 = property(_get_leda2, _set_leda2)
|
||||||
A3 = property(_get_leda3, _set_leda3)
|
A3 = property(_get_leda3, _set_leda3)
|
||||||
|
|||||||
Reference in New Issue
Block a user