Appendix A: System Routines — Link
657
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
BatTooLowFlash
Declaration:
BOOL
BatTooLowFlash
(WORD
delayCount
)
Category(ies):
Link, Flash Memory, Status Line
Description:
Returns TRUE if battery level is (or ever was) too low to write to Flash. If
delayCount
is non-zero, and the USER timer is not already in use, a delay
of
delayCount
will occur before a reading is done.
Inputs:
delayCount
— Length of delay before battery reading is taken
(recommended value is 50
†
MS100).
Outputs:
Returns TRUE if battery level is (or ever was) too low to write to Flash.
Otherwise returns FALSE.
Assumptions:
USER timer is not already in use.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
if (BatTooLowFlash(50*MS100)) /* batteries too low to send product code */
ERD_dialog( ER_BATT_LOW, FALSE );