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-02-20
- Revision:
- 209:befed15596a7
- Parent:
- Transforms/modes.cpp@ 204:74714d52a936
- Child:
- 232:47f6cf4f9126
File content as of revision 209:befed15596a7:
#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;
    }
}