From dc5d9231b56edb5a0b830e5049fafc4b303c3162 Mon Sep 17 00:00:00 2001 From: Cabooman <81711263+Cabooman@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:06:02 +0100 Subject: [PATCH] Getting too tired for this --- Software/src/battery/NISSAN-LEAF-BATTERY.h | 2 +- Software/src/battery/TESLA-MODEL-3-BATTERY.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/src/battery/NISSAN-LEAF-BATTERY.h b/Software/src/battery/NISSAN-LEAF-BATTERY.h index b0bd3018..fa88a959 100644 --- a/Software/src/battery/NISSAN-LEAF-BATTERY.h +++ b/Software/src/battery/NISSAN-LEAF-BATTERY.h @@ -27,7 +27,7 @@ extern uint16_t cell_max_voltage; //mV, 0-4350 extern uint16_t cell_min_voltage; //mV, 0-4350 extern uint8_t LEDcolor; //Enum, 0-10 extern uint16_t cellvoltages[120]; //mV 0-4350 per cell -extern uint16_t nof_cellvoltages; // Total number of cell voltages, set by each battery. +extern uint8_t nof_cellvoltages; // Total number of cell voltages, set by each battery. extern bool batteryAllowsContactorClosing; //Bool, 1=true, 0=false void update_values_leaf_battery(); diff --git a/Software/src/battery/TESLA-MODEL-3-BATTERY.h b/Software/src/battery/TESLA-MODEL-3-BATTERY.h index a99798aa..a10d6cc7 100644 --- a/Software/src/battery/TESLA-MODEL-3-BATTERY.h +++ b/Software/src/battery/TESLA-MODEL-3-BATTERY.h @@ -29,7 +29,7 @@ extern uint16_t temperature_max; //C+1, Goes thru convert2unsignedint16 func extern uint16_t cell_max_voltage; //mV, 0-4350 extern uint16_t cell_min_voltage; //mV, 0-4350 extern uint16_t cellvoltages[120]; //mV 0-4350 per cell -extern uint16_t nof_cellvoltages; // Total number of cell voltages, set by each battery. +extern uint8_t nof_cellvoltages; // Total number of cell voltages, set by each battery. extern uint8_t LEDcolor; //Enum, 0-10 extern bool batteryAllowsContactorClosing; //Bool, 1=true, 0=false extern bool inverterAllowsContactorClosing; //Bool, 1=true, 0=false