new LED logic: constant WARNING if VBATT is below 7v

This commit is contained in:
rusefi 2020-05-13 01:52:27 -04:00
parent 257ed04fac
commit 4e5a69891d
2 changed files with 6 additions and 2 deletions

View File

@ -10,10 +10,13 @@
#pragma once
#include "global.h"
#include "engine_configuration.h"
#define LOW_VBATT 7
#ifdef __cplusplus
#include "engine_configuration.h"
float getVRef(DECLARE_ENGINE_PARAMETER_SIGNATURE);
float getVBatt(DECLARE_ENGINE_PARAMETER_SIGNATURE);
bool hasVBatt(DECLARE_ENGINE_PARAMETER_SIGNATURE);
#endif /* __cplusplus */

View File

@ -40,6 +40,7 @@
#include "gpio/gpio_ext.h"
#include "pin_repository.h"
#include "os_util.h"
#include "voltage.h"
EXTERN_ENGINE_CONFIGURATION;