WDT config setting incorrect?

Discuss the Firewing language

WDT config setting incorrect?

Postby Jerry Messina » Wed Feb 27, 2013 10:29 am

module sys.imports\sysWDT references 'config WDT', but there's no config setting by that name

Code: Select all
#sysoption WDT = true

'device = 24HJ128GP502
'imports syswdt

Sub Main()
    clearwdt()
End Sub

generates "Identifier not declared: WDT"
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: WDT config setting incorrect?

Postby David John Barker » Wed Feb 27, 2013 11:25 am

Well spotted. Edit SysWDT.bas
Code: Select all
#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
#endif
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 7 guests

x