//------------------------------------------------------------------------------
// shutdownNotification()
//------------------------------------------------------------------------------
bool RfSensor::shutdownNotification()
{
   setTrackManager(nullptr);
   setMasterMode(nullptr);

   if (modes != nullptr) {
       modes->unref();
       modes = nullptr;
    }

   return BaseClass::shutdownNotification();
}
示例#2
0
// --------------------------- initialize
void HIDbase::begin( uint8_t LCDcols, uint8_t LCDrows, uint8_t Nbuttons ) {
  cLCD::begin( LCDcols, LCDrows );
  cButtonPE16::begin( Nbuttons );
  setMasterMode(); // stand alone mode until serial command is received
  T1 = 0.0;
  T2 = 0.0;
  RoR1 = 0.0;
  timestamp = 0.0;
  level_1 = 0;
  level_2 = 0;
  statusLCD = 0; // start with all fields fresh
  dTime = false;
  dLevel_1 = false;
  dLevel_2 = false;
}