- Code: Select all
#sysoption WDT = true
'device = 24HJ128GP502
'imports syswdt
Sub Main()
clearwdt()
End Sub
generates "Identifier not declared: WDT"
#sysoption WDT = true
'device = 24HJ128GP502
'imports syswdt
Sub Main()
clearwdt()
End Sub
#option WDT = False
#if IsOption(WDT) And Not (WDT in (True, False))
#error WDT, "Invalid option. WDT must be true or false."
#endif
#if WDT
#if _core = &H0018
config FWDT = FWDTEN_ON
#elseif _core = &H0012
Config WDT = ON
#endif
#endifUsers browsing this forum: No registered users and 4 guests