Revision e4379628 core/src/aos_shell.c
core/src/aos_shell.c | ||
---|---|---|
1637 | 1637 |
{ |
1638 | 1638 |
eventflags = chEvtGetAndClearFlags(&((aos_shell_t*)shell)->os.eventListener); |
1639 | 1639 |
// handle shutdown/restart events |
1640 |
if (eventflags & AOS_SYSTEM_EVENTFLAGS_SHUTDOWN) { |
|
1640 |
if (eventflags & AOS_SYSTEM_EVENTFLAGS_SHUTDOWN_MASK) {
|
|
1641 | 1641 |
chThdTerminate(((aos_shell_t*)shell)->thread); |
1642 | 1642 |
} else { |
1643 | 1643 |
// print an error message |
Also available in: Unified diff