General cleanup, style
This commit is contained in:
parent
806d64e1bf
commit
7cd72de8bc
3 changed files with 28 additions and 36 deletions
|
@ -227,18 +227,9 @@ static void print_is_also_tied() { SERIAL_ECHOPGM(" is also tied to this pin");
|
||||||
void com_print(uint8_t N, uint8_t Z) {
|
void com_print(uint8_t N, uint8_t Z) {
|
||||||
const uint8_t *TCCRA = (uint8_t*)TCCR_A(N);
|
const uint8_t *TCCRA = (uint8_t*)TCCR_A(N);
|
||||||
SERIAL_ECHOPGM(" COM");
|
SERIAL_ECHOPGM(" COM");
|
||||||
SERIAL_CHAR(N + '0');
|
SERIAL_CHAR('0' + N);
|
||||||
switch (Z) {
|
SERIAL_CHAR('A' + Z);
|
||||||
case 'A':
|
SERIAL_ECHOPAIR(": ", int((*TCCRA >> (6 - Z * 2)) & 0x03));
|
||||||
SERIAL_ECHOPAIR("A: ", ((*TCCRA & (_BV(7) | _BV(6))) >> 6));
|
|
||||||
break;
|
|
||||||
case 'B':
|
|
||||||
SERIAL_ECHOPAIR("B: ", ((*TCCRA & (_BV(5) | _BV(4))) >> 4));
|
|
||||||
break;
|
|
||||||
case 'C':
|
|
||||||
SERIAL_ECHOPAIR("C: ", ((*TCCRA & (_BV(3) | _BV(2))) >> 2));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void timer_prefix(uint8_t T, char L, uint8_t N) { // T - timer L - pwm N - WGM bit layout
|
void timer_prefix(uint8_t T, char L, uint8_t N) { // T - timer L - pwm N - WGM bit layout
|
||||||
|
|
|
@ -318,7 +318,8 @@ class MenuItem_bool {
|
||||||
if (screen_changed) return; \
|
if (screen_changed) return; \
|
||||||
} \
|
} \
|
||||||
if (ui.should_draw()) \
|
if (ui.should_draw()) \
|
||||||
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, plabel, ##V); \
|
draw_menu_item ## VARIANT ## _ ## TYPE \
|
||||||
|
(encoderLine == _thisItemNr, _lcdLineNr, plabel, ##V); \
|
||||||
} \
|
} \
|
||||||
++_thisItemNr; \
|
++_thisItemNr; \
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
Reference in a new issue