G1 problem with WAIT in latest firmware - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: G1 problem with WAIT in latest firmware (/thread-17294.html) |
G1 problem with WAIT in latest firmware - Jacob Wall - 07-29-2021 07:53 PM 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? Code: #pragma mode( separator(.,;) integer(h32) ) RE: G1 problem with WAIT in latest firmware - Jacob Wall - 07-30-2021 01:29 AM Does someone have a copy of previous firmware for G1? Looks like only latest version is available on hpcalc.org. I'm thinking that's probably the only realistic solution, to downgrade. EDIT: Found it here https://www.educalc.net/2336439.page EDIT 2: Downgrade of course solves the issue RE: G1 problem with WAIT in latest firmware - Eric Rechlin - 07-30-2021 02:05 PM All old firmware versions are available on my site, just you have to log in first to see them. RE: G1 problem with WAIT in latest firmware - Jacob Wall - 07-30-2021 11:22 PM (07-30-2021 02:05 PM)Eric Rechlin Wrote: All old firmware versions are available on my site, just you have to log in first to see them. Good to know, thanks! RE: G1 problem with WAIT in latest firmware - Gene222 - 08-06-2021 06:44 AM (07-29-2021 07:53 PM)Jacob Wall Wrote: On the G1, the WAIT(-1) is not working properly. It returns -1 immediately on subsequent calls (after the first successful run). WAIT(-1) works on my G1 hardware A calculator. WAIT(-1) will pause for 60 seconds, so the second loop is not needed. Review the help on WAIT. You need to address the three return actions, a key press, mouse tap, and timeout. Code: EXPORT TEST() The above code was tapped out on my phone. So, there maybe some typos. EDIT. Corrected some typos. EDIT. The mouse tap is kind of weird, because it returns three sets of information. This allows for gestures, such as a slide to the right. RE: G1 problem with WAIT in latest firmware - Gene222 - 08-06-2021 05:46 PM Hmmm. I thought I got the previous code to work on the physical calculator, but I can't get it to work anymore. It works on the virtual G1. I guess the OP was right. RE: G1 problem with WAIT in latest firmware - Gene222 - 08-06-2021 11:36 PM I corrected a bad argument error in the above code, but the program still does not work on the physical calculator. The problem is that the WAIT statement is not pausing execution and is not waiting for a key press or screen tap on version 2021-05-05. The connectivity kit and virtual calculator are both running version 2021-06-09, but the physical calculator is running version 2021-05-05. So, the real problem is that the physical calculator is not being updated to 2021-06-09. RE: G1 problem with WAIT in latest firmware - Gene222 - 08-08-2021 06:03 PM I was not able to downgrade the hardware A physical calculator to version 2020-01-16. Oh well. Below is the test program I used for WAIT(-1). It is not very good, as I don't understand how to handle time dependent variables. When tapping the screen, the screen handler captures the first data set, and prints it. The program moves on to the menu handler procedures, but the system is still returning the screen tap data. I had to add a third test condition, datMK(3) greater than 220, to avoid capturing the screen tap data. Code: // 8/22/2021 8/22/21. Corrected case statement to the newer format. Also, removed default statement. Corrected tab coordinates. RE: G1 problem with WAIT in latest firmware - Jacob Wall - 08-09-2021 03:38 AM My program was intentionally short and limited to clearly illustrate the failure of WAIT in the latest firmware for G1. I don't expect this to be fixed any time soon, just surprised nobody else has complained about it. Procedure to downgrade: 1. Download the previous firmware files from hpcalc.org (must be logged in) 2. Open the folder at C:\Users\USERNAME\Documents\HP Connectivity Kit\Firmware\PrimeG1 3. Delete everything from that folder 4. Copy the contents of the ZIP folder downloaded in Step 1 to this folder 5. Start Connectivity Kit 6. Plug in USB to calculator 7. In Connectivity Kit, right-click on your calculator’s name 8. Choose ‘Update Firmware’ 9. The firmware is installed RE: G1 problem with WAIT in latest firmware - ramon_ea1gth - 06-06-2022 01:51 PM In fact, this bug is creating issues with CSTMENU that took some time to be discovered: https://www.hpmuseum.org/forum/thread-16144-post-160951.html#pid160951 |