mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Reduce direct usage of can_config
This commit is contained in:
parent
3612e18452
commit
d30a35bd4f
56 changed files with 794 additions and 786 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "../../../USER_SECRETS.h"
|
||||
#include "../../battery/BATTERIES.h"
|
||||
#include "../../battery/Battery.h"
|
||||
#include "../../communication/can/comm_can.h"
|
||||
#include "../../communication/contactorcontrol/comm_contactorcontrol.h"
|
||||
#include "../../communication/nvm/comm_nvm.h"
|
||||
#include "../../datalayer/datalayer.h"
|
||||
|
@ -20,8 +21,6 @@
|
|||
extern std::string http_username;
|
||||
extern std::string http_password;
|
||||
|
||||
void transmit_can_frame(CAN_frame* tx_frame, int interface);
|
||||
|
||||
#ifdef WEBSERVER
|
||||
const bool webserver_enabled_default = true;
|
||||
#else
|
||||
|
@ -167,7 +166,7 @@ void canReplayTask(void* param) {
|
|||
(datalayer.system.info.can_replay_interface == CANFD_ADDON_MCP2518);
|
||||
currentFrame.ext_ID = (currentFrame.ID > 0x7F0);
|
||||
|
||||
transmit_can_frame(¤tFrame, datalayer.system.info.can_replay_interface);
|
||||
transmit_can_frame_to_interface(¤tFrame, datalayer.system.info.can_replay_interface);
|
||||
}
|
||||
} while (datalayer.system.info.loop_playback);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue