Occasional halts on "Burn" in TunerStudio ("Red" LED is on) #640

This commit is contained in:
rusefi 2019-01-11 17:40:00 -05:00
parent d55c7dd856
commit 2b1fd382f2
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,7 @@ static THD_WORKING_AREA(waThreadStack, UTILITY_THREAD_STACK_SIZE);
static Logging * logger; static Logging * logger;
static void ensureInitialized(WaveReader *reader) { static void ensureInitialized(WaveReader *reader) {
efiAssertVoid(CUSTOM_ERR_6654, reader->hw->started, "wave analyzer NOT INITIALIZED"); efiAssertVoid(CUSTOM_ERR_6654, reader->hw != NULL && reader->hw->started, "wave analyzer NOT INITIALIZED");
} }
#if EFI_WAVE_ANALYZER || defined(__DOXYGEN__) #if EFI_WAVE_ANALYZER || defined(__DOXYGEN__)
@ -210,6 +210,9 @@ static float getSignalPeriodMs(int index) {
//} //}
static void reportWave(Logging *logging, int index) { static void reportWave(Logging *logging, int index) {
if (readers[index].hw == NULL) {
return;
}
if (readers[index].hw->started) { if (readers[index].hw->started) {
// int counter = getEventCounter(index); // int counter = getEventCounter(index);
// debugInt2(logging, "ev", index, counter); // debugInt2(logging, "ev", index, counter);