Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
modes.cpp
- Committer:
- bwang
- Date:
- 2018-11-10
- Revision:
- 232:47f6cf4f9126
- Parent:
- 209:befed15596a7
File content as of revision 232:47f6cf4f9126:
#include "prefs.h"
bool mode_enables_logging() {
switch(BREMS_mode) {
case MODE_RUN:
return true;
case MODE_CFG:
case MODE_ZERO:
case MODE_CHR:
return false;
default:
return false;
}
}
bool mode_enables_output() {
switch(BREMS_mode) {
case MODE_RUN:
case MODE_ZERO:
case MODE_CHR:
return true;
case MODE_CFG:
return false;
default:
return false;
}
}
bool mode_overrides_timers() {
switch(BREMS_mode) {
case MODE_ZERO:
case MODE_CHR:
return true;
case MODE_RUN:
case MODE_CFG:
return false;
default:
return false;
}
}