rusEFI console ISO-TP via PCAN #3667

fixing build #2
This commit is contained in:
rusefillc 2021-12-08 16:12:51 -05:00
parent 99b153e445
commit 2bed640b50
1 changed files with 9 additions and 2 deletions

View File

@ -14,8 +14,6 @@
#include "os_access.h"
#include "crc.h"
#include "serial_can.h"
#include "can.h"
#include "can_msg_tx.h"
#if HAL_USE_CAN
static CanStreamer streamer;
@ -23,6 +21,11 @@ static CanStreamerState state(&streamer);
static CanTsListener listener;
#endif // HAL_USE_CAN
#if HAL_USE_CAN || EFI_UNIT_TEST
#include "can.h"
#include "can_msg_tx.h"
int CanStreamerState::sendFrame(const IsoTpFrameHeader & header, const uint8_t *data, int num, can_sysinterval_t timeout) {
int dlc = 8; // standard 8 bytes
CanTxMessage txmsg(CAN_ECU_SERIAL_TX_ID, dlc, false);
@ -360,3 +363,7 @@ msg_t canStreamReceiveTimeout(size_t *np, uint8_t *rxbuf, sysinterval_t timeout)
}
#endif /* HAL_USE_CAN */
#endif // HAL_USE_CAN || EFI_UNIT_TEST