qpc/doxygen/snippets/qep_qtran.c
Quantum Leaps 72c46c2993 5.3.0
2014-04-06 11:43:13 -04:00

21 lines
443 B
C

QState Blinky_off(Blinky * const me, QEvt const * const e) {
QState status;
switch (e->sig) {
case Q_ENTRY_SIG: {
BSP_ledOff();
status = Q_HANDLED();
break;
}
case TIMEOUT_SIG: {
status = Q_TRAN(&Blinky_on); /*<== */
break;
}
default: {
status = Q_SUPER(&QHsm_top);
break;
}
}
return status;
}