PicoMite serial Input


Author Message
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 550
Posted: 04:49pm 06 Jan 2025      

Based on Volhouts sample code i tried to read the console input in a timer tick interrupt routine. But this gives me an unexpected error ...

[36] cons_str = cons_str + Input$(Loc(0),#0)  'get input chars
Error : Internal fault 2(sorry)

whereas

c_loc = loc(0)
cons_str = cons_str + Input$(c_loc,#0)  'get input chars

runs without a hitch.

Are there any known limitations to the usage of LOC(0) in a statement? Using the intermediate variable is a workaround but there is no beauty in this  

Btw: i've never encountered an "internal fault 2" or whatsoever number ....

Gerald