Example #1
0
//=============================================================================
// 1msec timer interrupt hook
void user_1ms_isr_type2(void)
{
    (void)SignalCounter(SysTimerCnt); // Alarm counter

    SleeperMonitor(); // Need for Nxt and I2C device classes

    if (mNxt.getButtons() == Nxt::ENTR_ON && !mBluetooth.isConnected())
    {
        mBluetooth.cancelWaitForConnection(); // Cancel Bluetooth connection process
    }
}