This commit is contained in:
rusefi 2020-05-25 22:38:57 -04:00
parent 98a1c3d617
commit bf2794ca91
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ typedef struct __attribute__ ((packed)) {
bool sync : 1;
} composite_logger_s;
/**
* Engine idles around 20Hz and revs up to 140Hz, at 60/2 and 8 cylinders we have about 20Khz events
* If we can read buffer at 50Hz we want buffer to be about 400 elements.
*/
static composite_logger_s buffer[COMPOSITE_PACKET_COUNT] CCM_OPTIONAL;
static size_t NextIdx = 0;
static volatile bool ToothLoggerEnabled = false;