diff --git a/Software/USER_SETTINGS.h b/Software/USER_SETTINGS.h index b0756f99..3f594a5a 100644 --- a/Software/USER_SETTINGS.h +++ b/Software/USER_SETTINGS.h @@ -65,7 +65,7 @@ #define DUMMY_EVENT_ENABLED false //Enable this line to have a dummy event that gets logged to test the interface /* Select charger used (Optional) */ -#define CHEVYVOLT_CHARGER //Enable this line to control a Chevrolet Volt charger connected to battery - for example, when generator charging or using an inverter without a charging function. +//#define CHEVYVOLT_CHARGER //Enable this line to control a Chevrolet Volt charger connected to battery - for example, when generator charging or using an inverter without a charging function. //#define NISSANLEAF_CHARGER //Enable this line to control a Nissan LEAF PDM connected to battery - for example, when generator charging /* Battery settings */ diff --git a/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp b/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp index da3cee1c..a31ff267 100644 --- a/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp +++ b/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp @@ -280,9 +280,8 @@ void send_can_battery() { }}, .MsgID = 0x7e4, .data = {0x03, 0x19, 0x02, 0x8f, 0x00, 0x00, 0x00, 0x00}}; - err = transmit_can(&msg, can_config.battery); - if (err == 0) - state++; + transmit_can(&msg, can_config.battery); + state++; break; case 1: @@ -296,9 +295,8 @@ void send_can_battery() { }}, .MsgID = 0x7e4, .data = {0x06, 0x19, 0x04, 0xc0, 0x64, 0x88, 0xff, 0x00}}; - err = transmit_can(&msg, can_config.battery); - if (err == 0) - state++; + transmit_can(&msg, can_config.battery); + state++; break; case 2: /* reset */