HP Forums
[Bug] PPL can Freeze when the Battery is Critical - 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: [Bug] PPL can Freeze when the Battery is Critical (/thread-16234.html)



[Bug] PPL can Freeze when the Battery is Critical - TheLastMillennial - 01-27-2021 05:48 AM

Yesterday, I tried to perform my own battery benchmark for the HP Prime G2. Since I don't have a robot built to replicate Edwin Reid's benchmark, I tried to replicate it using PPL.

Code:
EXPORT COUNT()
BEGIN
LOCAL C:=0;
WHILE 1 DO
 C:=C+1;
 PRINT(C);
 WAIT(1);
END;
END;

It actually worked pretty well, up until the calculator was about to die. Halfway between the 25% and 0% capacity (I assume this is when the 'Battery critically low' message would normally appear), the calculator just completely froze. The code stopped executing and the clock stopped. 2 hours later, the calculator died. I don't know what specific command it froze at, but my guess is the WAIT command is somehow the culprit since the clock stopped.

It was pretty disappointing to discover this because it completely invalidated my battery test. On the bright side, the HP Prime was at 14 hours before it froze which is pretty darn good battery life for non-stop use.