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