mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
fixed comment and function name
This commit is contained in:
parent
3d5f03823f
commit
1f749535c5
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue