1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Switch to static storage for error counters

Remove DEBUG_INCR, and switch to static counters.
This commit is contained in:
anthonycake 2020-12-05 17:42:56 +01:00
parent 8627af832c
commit a543ed8887
2 changed files with 5 additions and 3 deletions

View file

@ -25,7 +25,6 @@ extern int16_t debug[DEBUG16_VALUE_COUNT];
extern uint8_t debugMode;
#define DEBUG_SET(mode, index, value) {if (debugMode == (mode)) {debug[(index)] = (value);}}
#define DEBUG_INCR(mode, index) {if (debugMode == (mode)) {++debug[(index)];}}
#define DEBUG_SECTION_TIMES