ETB target is using integer values #945

refactoring - ADC mocking is a mess
This commit is contained in:
rusefi 2019-09-22 16:52:22 -04:00
parent b3b8d8607c
commit bce63b112a
3 changed files with 3 additions and 5 deletions

View File

@ -20,7 +20,6 @@
float getVoltage(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX);
// DECLARE_ENGINE_PARAMETER_SUFFIX
float getVoltageDivided(const char *msg, adc_channel_e channel);
float getVoltageDivided(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX);
#endif /* ADC_MATH_H_ */

View File

@ -9,11 +9,10 @@
#define BOARDS_H_
#include "engine_configuration.h"
#include "adc_math.h"
#define ADC_CHANNEL_VREF 0
float getVoltageDivided(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX);
float getVoltage(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX);
int getAdcValue(const char *msg, adc_channel_e channel);
#endif /* BOARDS_H_ */

View File

@ -20,7 +20,7 @@
#define SPARK_EXTREME_LOGGING TRUE
#define EFI_ENABLE_MOCK_ADC FALSE
#define EFI_ENABLE_MOCK_ADC TRUE
#define EFI_ENABLE_CRITICAL_ENGINE_STOP TRUE
#define EFI_ENABLE_ENGINE_WARNING TRUE