mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Eliminate some warnings
This commit is contained in:
parent
895ebc07a2
commit
ec1cee929a
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ CAN_frame ipace_keep_alive = {.FD = false,
|
||||||
.ID = 0x59e,
|
.ID = 0x59e,
|
||||||
.data = {0x9E, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}};*/
|
.data = {0x9E, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}};*/
|
||||||
|
|
||||||
static void print_units(char* header, int value, char* units) {
|
static void print_units(const char* header, int value, const char* units) {
|
||||||
logging.print(header);
|
logging.print(header);
|
||||||
logging.print(value);
|
logging.print(value);
|
||||||
logging.print(units);
|
logging.print(units);
|
||||||
|
@ -226,7 +226,7 @@ void JaguarIpaceBattery::transmit_can(unsigned long currentMillis) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void JaguarIpaceBattery::setup(void) { // Performs one time setup at startup
|
void JaguarIpaceBattery::setup(void) { // Performs one time setup at startup
|
||||||
strncpy(datalayer.system.info.battery_protocol, "Jaguar I-PACE", 63);
|
strncpy(datalayer.system.info.battery_protocol, Name, 63);
|
||||||
datalayer.system.info.battery_protocol[63] = '\0';
|
datalayer.system.info.battery_protocol[63] = '\0';
|
||||||
datalayer.battery.info.number_of_cells = 108;
|
datalayer.battery.info.number_of_cells = 108;
|
||||||
datalayer.battery.info.max_design_voltage_dV = MAX_PACK_VOLTAGE_DV;
|
datalayer.battery.info.max_design_voltage_dV = MAX_PACK_VOLTAGE_DV;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "../datalayer/datalayer.h"
|
#include "../datalayer/datalayer.h"
|
||||||
#include "../include.h"
|
#include "../include.h"
|
||||||
|
|
||||||
static void print_units(char* header, int value, char* units) {
|
static void print_units(const char* header, int value, const char* units) {
|
||||||
logging.print(header);
|
logging.print(header);
|
||||||
logging.print(value);
|
logging.print(value);
|
||||||
logging.print(units);
|
logging.print(units);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue