Dm_sec = Dm_sec_e Reset Watchdog If Dm_status = 4 And Dm_sec <> 4 Then 'DM is there and not saved 'Security not yet active Reset Watchdog Disable Interrupts Dm_sec_e = Dm_status 'Save Security Enable Interrupts Reset Watchdog End If If Dm_status <> 4 And Dm_sec = 4 Then 'DM not there but Security active ' Do Toggle Loadled Toggle Dryled Toggle Tankled For Startwait = 1 To 50 Waitms 10 Reset Watchdog Next Startwait Loop 'Endless End If