Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Option TargetDevice ZX24x
Option Pin15 "T"
Sub Main()
dim hangz As Single
const mypin as Byte = 15
hangz = 0.0
Debug.Print "Got to here: ";hangz
Call GetADC(15, hangz)
Debug.Print "Did not get here: ";hangz
End Sub
It never gets to "Did not get here: ". Is there something special about the 24x?
The source of the problem has been found and corrected; it only affects xmega-based ZX devices. You can download an updated partial set of ZBasic Library files via the link below. The contents of the downloaded archive should be extracted (preserving path prefixes) to the zlib subdirectory of the ZBasic installation directory. When you're finished you should find two files with today's date in the zlib\avr\lib subdirectory. Re-compiling your code should then produce the correct result.