In a quick and dirty prototype fashion I put a call to ResetProcessor thinking this would perform a warm start and execute my program from the beginning again, but at first glance it didn't appear to do anything.
Have I misunderstood what this should be doing ?
ResetProcessor command
Re: ResetProcessor command
The ResetProcessor() call resets the device using the WatchDog reset. Other than that, it is essentially the same as a power-on reset or an external reset.FFMan wrote:[...] a call to ResetProcessor thinking this would perform a warm start and execute my program from the beginning again
On which device?FFMan wrote:it didn't appear to do anything.
- Don Kinzer
I just ran a quick test (see code below) on several devices including the ZX-24p. All executed as expected, restarting every two seconds.FFMan wrote:ZX24p
Code: Select all
Sub Main()
Debug.Print "Hello, world!"
Call Sleep(2.0)
Call ResetProcessor()
End Sub
- Don Kinzer