Добавлено тестировние платы в меню:
- Тест Tx Оптики - Тест Rx Оптики - Тест АЦП
This commit is contained in:
@@ -9,12 +9,24 @@ const char *roleName(Role r) {
|
||||
return i < 3 ? names[i] : "?";
|
||||
}
|
||||
|
||||
const char *testGroupName(TestGroup group) {
|
||||
static const char *names[] = {"OPTICS", "BOARD"};
|
||||
const uint8_t i = static_cast<uint8_t>(group);
|
||||
return i < 2 ? names[i] : "?";
|
||||
}
|
||||
|
||||
const char *testKindName(TestKind kind) {
|
||||
static const char *names[] = {"OPTICAL", "DRIVER"};
|
||||
const uint8_t i = static_cast<uint8_t>(kind);
|
||||
return i < 2 ? names[i] : "?";
|
||||
}
|
||||
|
||||
const char *boardTestName(BoardTest test) {
|
||||
static const char *names[] = {"ADC", "PWM OUTPUT", "RX INPUT"};
|
||||
const uint8_t i = static_cast<uint8_t>(test);
|
||||
return i < 3 ? names[i] : "?";
|
||||
}
|
||||
|
||||
const char *lightCodeName(LightCode code) {
|
||||
static const char *names[] = {"HH", "HL", "LH", "LL"};
|
||||
const uint8_t i = static_cast<uint8_t>(code);
|
||||
|
||||
Reference in New Issue
Block a user