mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Add timeout to CAN write to prevent crashing
This commit is contained in:
parent
56f7f205e4
commit
7025811c6e
4 changed files with 31 additions and 10 deletions
|
@ -3,14 +3,17 @@
|
|||
|
||||
#include "CAN_config.h"
|
||||
#include "CAN.h"
|
||||
extern uint8_t LEDcolor;
|
||||
|
||||
class ESP32CAN
|
||||
{
|
||||
public:
|
||||
bool tx_ok = true;
|
||||
int CANInit();
|
||||
int CANConfigFilter(const CAN_filter_t* p_filter);
|
||||
int CANConfigFilter(const CAN_filter_t* p_filter);
|
||||
int CANWriteFrame(const CAN_frame_t* p_frame);
|
||||
int CANStop();
|
||||
void CANSetCfg(CAN_device_t *can_cfg);
|
||||
};
|
||||
|
||||
extern ESP32CAN ESP32Can;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue