Post Reply 
G1 problem with WAIT in latest firmware
07-29-2021, 07:53 PM
Post: #1
G1 problem with WAIT in latest firmware
I am finding that the WAIT command on G1 is problematic with the latest 2021 firmware, reproduced on multiple calculators. No problems on G2 or emulators.

Here's an example program, what it should do is clear the screen, then instruct user to press a key on the keyboard. Once a key is pressed, the key code is displayed for half a second and then screen is cleared again while waiting for next key press. On the G1, the WAIT(-1) is not working properly. It returns -1 immediately on subsequent calls (after the first successful run).

Should be easy to reproduce. This breaks every UI routine that relies on WAIT(-1). Anyone else found this and either have a workaround or has reported it?

#pragma mode( separator(.,;) integer(h32) )

  LOCAL m:=0;
  TEXTOUT_P("Press a key, ENTER to exit",G0,0,0);
    UNTIL TYPE(m)==0;
    TEXTOUT_P("Key " + STRING(m) + " was pressed",G0,0,50);
  UNTIL m==30;
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
G1 problem with WAIT in latest firmware - Jacob Wall - 07-29-2021 07:53 PM

User(s) browsing this thread: