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.
Transforms/modes.cpp
- Committer:
- bwang
- Date:
- 2018-02-14
- Revision:
- 208:3f3fe99c73ad
- Parent:
- 204:74714d52a936
File content as of revision 208:3f3fe99c73ad:
#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;
}
}