fixed comment and function name

This commit is contained in:
rha 2025-01-01 21:43:26 +02:00
parent 3d5f03823f
commit 1f749535c5
4 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ volatile CAN_Configuration can_config = {
.inverter = CAN_NATIVE, // Which CAN is your inverter connected to? (No need to configure incase you use RS485)
.battery_double = CAN_ADDON_MCP2515, // (OPTIONAL) Which CAN is your second battery connected to?
.charger = CAN_NATIVE, // (OPTIONAL) Which CAN is your charger connected to?
.shunt = CAN_NATIVE // (OPTIONAL) Which CAN is your charger connected to?
.shunt = CAN_NATIVE // (OPTIONAL) Which CAN is your shunt connected to?
};
std::string ssid = WIFI_SSID; // Set in USER_SECRETS.h

View file

@ -4,7 +4,7 @@
#ifdef BMW_SBOX
#include "BMW-SBOX.h"
void map_can_frame_to_variable_shunt(CAN_frame rx_frame);
void handle_incoming_can_frame_shunt(CAN_frame rx_frame);
void transmit_can_shunt();
void setup_can_shunt();
#endif

View file

@ -64,7 +64,7 @@ uint8_t calculateCRC(CAN_frame CAN) {
return crc;
}
void map_can_frame_to_variable_shunt(CAN_frame rx_frame) {
void handle_incoming_can_frame_shunt(CAN_frame rx_frame) {
unsigned long currentTime = millis();
if (rx_frame.ID == 0x200) {
ShuntLastSeen = currentTime;

View file

@ -347,7 +347,7 @@ void map_can_frame_to_variable(CAN_frame* rx_frame, int interface) {
}
if (interface == can_config.shunt) {
#ifdef CAN_SHUNT_SELECTED
map_can_frame_to_variable_shunt(*rx_frame);
handle_incoming_can_frame_shunt(*rx_frame);
#endif
}
}