Skip to content

Commit

Permalink
fixed comment and function name
Browse files Browse the repository at this point in the history
  • Loading branch information
gwk1 committed Jan 1, 2025
1 parent 3d5f038 commit 1f74953
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Software/USER_SETTINGS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Software/src/battery/BATTERIES.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Software/src/battery/BMW-SBOX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Software/src/communication/can/comm_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 1f74953

Please sign in to comment.