Fix compilation issue

This commit is contained in:
Daniel Öster 2024-08-06 14:15:41 +03:00
parent 635f450e53
commit c34bc58c8a
2 changed files with 5 additions and 7 deletions

View file

@ -65,7 +65,7 @@
#define DUMMY_EVENT_ENABLED false //Enable this line to have a dummy event that gets logged to test the interface #define DUMMY_EVENT_ENABLED false //Enable this line to have a dummy event that gets logged to test the interface
/* Select charger used (Optional) */ /* 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 //#define NISSANLEAF_CHARGER //Enable this line to control a Nissan LEAF PDM connected to battery - for example, when generator charging
/* Battery settings */ /* Battery settings */

View file

@ -280,9 +280,8 @@ void send_can_battery() {
}}, }},
.MsgID = 0x7e4, .MsgID = 0x7e4,
.data = {0x03, 0x19, 0x02, 0x8f, 0x00, 0x00, 0x00, 0x00}}; .data = {0x03, 0x19, 0x02, 0x8f, 0x00, 0x00, 0x00, 0x00}};
err = transmit_can(&msg, can_config.battery); transmit_can(&msg, can_config.battery);
if (err == 0) state++;
state++;
break; break;
case 1: case 1:
@ -296,9 +295,8 @@ void send_can_battery() {
}}, }},
.MsgID = 0x7e4, .MsgID = 0x7e4,
.data = {0x06, 0x19, 0x04, 0xc0, 0x64, 0x88, 0xff, 0x00}}; .data = {0x06, 0x19, 0x04, 0xc0, 0x64, 0x88, 0xff, 0x00}};
err = transmit_can(&msg, can_config.battery); transmit_can(&msg, can_config.battery);
if (err == 0) state++;
state++;
break; break;
case 2: case 2:
/* reset */ /* reset */