refactoring
This commit is contained in:
parent
b080240132
commit
873d4e26cb
|
@ -21,7 +21,7 @@ void TunerStudio::cmdOutputChannels(TsChannelBase* tsChannel, uint16_t offset, u
|
|||
}
|
||||
|
||||
tsState.outputChannelsCommandCounter++;
|
||||
prepareTunerStudioOutputs();
|
||||
updateTunerStudioState();
|
||||
// this method is invoked too often to print any debug information
|
||||
tsChannel->writeCrcPacket(TS_RESPONSE_OK, reinterpret_cast<const uint8_t*>(&engine->outputChannels) + offset, count);
|
||||
}
|
||||
|
|
|
@ -707,6 +707,7 @@ static void updateTpsDebug() {
|
|||
engine->outputChannels.debugFloatField5 = 100 * Sensor::getOrZero(SensorType::Tps1Primary) / Sensor::getOrZero(SensorType::Tps1Secondary);
|
||||
}
|
||||
|
||||
// sensor state for EFI Analytics Tuner Studio
|
||||
void updateTunerStudioState() {
|
||||
TunerStudioOutputChannels *tsOutputChannels = &engine->outputChannels;
|
||||
#if EFI_SHAFT_POSITION_INPUT
|
||||
|
@ -904,13 +905,6 @@ void updateTunerStudioState() {
|
|||
}
|
||||
}
|
||||
|
||||
void prepareTunerStudioOutputs(void) {
|
||||
// sensor state for EFI Analytics Tuner Studio
|
||||
updateTunerStudioState();
|
||||
engine->outputChannels.idleStatus.resetCounter = 0x12345653;
|
||||
engine->outputChannels.etbStatus.resetCounter = 0x12345654;
|
||||
}
|
||||
|
||||
#endif /* EFI_TUNER_STUDIO */
|
||||
|
||||
void initStatusLoop(void) {
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include "rusefi_types.h"
|
||||
|
||||
void updateDevConsoleState(void);
|
||||
void prepareTunerStudioOutputs(void);
|
||||
void startStatusThreads(void);
|
||||
void initStatusLoop(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue