void RSSourceStatusButton::HotSpotResult( SInt16 /* inHotSpot */) { // Validate pointers. ValidateThis_(); // If we have a source-control setting, make file MRO. if (mSettings != nil) { if (mSettings->IsReadOnly()) { mSettings->ModifyReadOnly(); StatusBlink(); } } }
void RSSourceStatusButton::ListenToMessage( MessageT inMessage, void* /* ioParam */) { // Validate pointers. ValidateThis_(); // Listen for SCC messages. switch (inMessage) { case msg_SCC_Changed: Refresh(); break; case msg_ReadOnlyViolation: if (IsActive()) StatusBlink(); break; } }
void forceReset() { StatusBlink(3); wdt_enable(WDTO_15MS); for(;;) ; }