Change pollstate naming

This commit is contained in:
Carsten Schmiemann 2022-04-20 23:57:48 +02:00
parent 6a6bffced2
commit 061746588f
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
// Pollstate 0 - POLLSTATE_OFF - car is off
// Pollstate 1 - POLLSTATE_ON - car is on
// Pollstate 2 - POLLSTATE_RUNNING - car is driving
// Pollstate 2 - POLLSTATE_DRIVING - car is driving
// Pollstate 3 - POLLSTATE_CHARGING - car is charging
static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = {
//***TX-ID, ***RX-ID, ***SID, ***PID, { Polltime (seconds) for Pollstate 0, 1, 2, 3}, ***CAN BUS Interface, ***FRAMETYPE

View File

@ -294,8 +294,8 @@ void OvmsVehicleRenaultZoePh2::Ticker1(uint32_t ticker) {
}
if (CarIsDriving && !CarIsDrivingInit) {
CarIsDrivingInit = true;
ESP_LOGI(TAG, "Pollstate switched to RUNNING");
POLLSTATE_RUNNING;
ESP_LOGI(TAG, "Pollstate switched to DRIVING");
POLLSTATE_DRIVING;
}
if (!StandardMetrics.ms_v_env_on->AsBool() && CarIsDriving) {
CarIsDriving = false;

View File

@ -53,7 +53,7 @@ static const char *TAG = "v-zoe-ph2";
#define POLLSTATE_OFF PollSetState(0);
#define POLLSTATE_ON PollSetState(1);
#define POLLSTATE_RUNNING PollSetState(2);
#define POLLSTATE_DRIVING PollSetState(2);
#define POLLSTATE_CHARGING PollSetState(3);
using namespace std;