Bug: serrxd/serrxd [timeout,address] & count

tarzan

Senior Member
Serrxd/serrxd [timeout,address] in conjunction with count prevents count from executing unless reconnect is used.
When simulating serrxd [timeout,address] using “simulate timeout” it stops the simulation.
 

Technical

Technical Support
Staff member
Please provide chip type, firmware number, sample BASIC program and Prog Editor version so we can check this for you. Thanks
 

tarzan

Senior Member
serrxd bug

Programming Editor V5.1.5
28X1 A.2

Code:
#com 1
#picaxe 28X1 'A.2
#terminal 4800
setfreq em4
 
main:
sertxd ("main",13,10)'DEBUG
disconnect 'not necessary
serrxd [1000,main],b0 'enter digit to continue past this point
reconnect 'comment out this line and processing stops at count
gosub display_count
goto main
 
display_count:
sertxd ("get count",13,10)'DEBUG
count 0,600,w1
sertxd ("count = ",#w1,13,10)'DEBUG
return
 

Technical

Technical Support
Staff member
This is indeed a minor bug in the firmware, and it only occurs on count whilst 'disconnected' Thanks for pointing it out, we will fix in next firmware version.
The workaround is to reconnect before the count as you suggest.
 
Top