7.9.8.104. OnReset()

GEL callback function called after the target processor has been reset.

Syntax

OnReset( int nErrorCode );

Parameters

nErrorCode 0 (zero) indicates success.

Description

If defined in a loaded GEL file, OnReset() is called after the target processor has been reset.

Example

OnReset(int nErrorCode)
{
if (nErrorCode)
GEL_TextOut(“An error occurred while resetting. -%d-n”,,,,, nErrorCode);
else
GEL_TextOut(“Reset was successful. -%d-n”,,,,, nErrorCode);
}