Post Reply 
Z LIGHTS: Prime's answer to mobile phone torches
11-10-2017, 09:16 PM
Post: #5
RE: Z LIGHTS: Prime's answer to mobile phone torches
The cause appears to be a bug in 11586, not present in 8151 (both on Android).

In the main program, a loop on CHOOSE is examining the choose variable CHS, expecting it to be 0 if the user Escapes without selecting a choice... This seems to be the documented behaviour in the on-device help in both versions.
In 8151 as expected 0 is returned.
In 11586 the previous value is repeated.

Changing the logic so that CHOOSE returns a boolean and using that boolean to exit fixes the change in behaviour and works in both systems.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Z LIGHTS: Prime's answer to mobile phone torches - StephenG1CMZ - 11-10-2017 09:16 PM



User(s) browsing this thread: 1 Guest(s)