diff --git a/firmware/console/binary/tunerstudio_outputs.h b/firmware/console/binary/tunerstudio_outputs.h index aedba2e245..21423a8712 100644 --- a/firmware/console/binary/tunerstudio_outputs.h +++ b/firmware/console/binary/tunerstudio_outputs.h @@ -217,8 +217,8 @@ struct TunerStudioOutputChannels { scaled_channel debugIntField1; scaled_channel debugIntField2; scaled_channel debugIntField3; - int16_t debugIntField4; - int16_t debugIntField5; // 210 + scaled_channel debugIntField4; + scaled_channel debugIntField5; // 210 // accelerometer int16_t accelerationX; // 212 diff --git a/firmware/console/binary_log/binary_logging.cpp b/firmware/console/binary_log/binary_logging.cpp index 9c7a1098bb..fdcb698937 100644 --- a/firmware/console/binary_log/binary_logging.cpp +++ b/firmware/console/binary_log/binary_logging.cpp @@ -35,6 +35,11 @@ static constexpr LogField fields[] = { {tsOutputChannels.airFuelRatio2, GAUGE_NAME_AFR2, "afr", 2}, {tsOutputChannels.lambda, GAUGE_NAME_LAMBDA, "", 3}, {tsOutputChannels.lambda2, GAUGE_NAME_LAMBDA2, "", 3}, + {tsOutputChannels.debugIntField1, GAUGE_NAME_DEBUG_I1, "", 0}, + {tsOutputChannels.debugIntField2, GAUGE_NAME_DEBUG_I2, "", 0}, + {tsOutputChannels.debugIntField3, GAUGE_NAME_DEBUG_I3, "", 0}, + {tsOutputChannels.debugIntField4, GAUGE_NAME_DEBUG_I4, "", 0}, + {tsOutputChannels.debugIntField5, GAUGE_NAME_DEBUG_I5, "", 0}, {tsOutputChannels.vBatt, GAUGE_NAME_VBAT, "v", 2}, {tsOutputChannels.oilPressure, GAUGE_NAME_OIL_PRESSURE, GAUGE_NAME_FUEL_PRESSURE_HIGH_UNITS, 0}, {tsOutputChannels.lowFuelPressure, GAUGE_NAME_FUEL_PRESSURE_LOW, GAUGE_NAME_FUEL_PRESSURE_LOW_UNITS, 0}, diff --git a/firmware/development/logic_analyzer.cpp b/firmware/development/logic_analyzer.cpp index 41298b24b0..6a169a7a53 100644 --- a/firmware/development/logic_analyzer.cpp +++ b/firmware/development/logic_analyzer.cpp @@ -273,7 +273,7 @@ void reportLogicAnalyzerToTS() { getChannelFreqAndDuty(1,&tsOutputChannels.debugFloatField2, &tsOutputChannels.debugIntField2); getChannelFreqAndDuty(2,&tsOutputChannels.debugFloatField3, &tsOutputChannels.debugIntField3); getChannelFreqAndDuty(3,&tsOutputChannels.debugFloatField4, &tmp); - tsOutputChannels.debugIntField4 = tmp; + tsOutputChannels.debugIntField4 = (uint16_t)tmp; #endif }