rusEFI console ISO-TP via PCAN #3667

changing this mess just a bit
This commit is contained in:
rusefillc 2021-12-08 18:43:27 -05:00
parent 6be915f7af
commit 574d09e29e
1 changed files with 5 additions and 5 deletions

View File

@ -14,21 +14,21 @@
#include "os_access.h" #include "os_access.h"
#include "crc.h" #include "crc.h"
#if HAL_USE_CAN // todo: this file is asking to improve conditional compilation. unit_tests and cypress/kinetis are both special cases
#if HAL_USE_CAN || EFI_UNIT_TEST
#include "serial_can.h" #include "serial_can.h"
#include "can.h" #include "can.h"
#include "can_msg_tx.h" #include "can_msg_tx.h"
#endif // HAL_USE_CAN || EFI_UNIT_TEST
CanStreamer streamer; #if HAL_USE_CAN
static CanStreamer streamer;
static CanStreamerState state(&streamer); static CanStreamerState state(&streamer);
static CanTsListener listener; static CanTsListener listener;
#endif // HAL_USE_CAN #endif // HAL_USE_CAN
#if HAL_USE_CAN || EFI_UNIT_TEST #if HAL_USE_CAN || EFI_UNIT_TEST
#include "serial_can.h"
#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 CanStreamerState::sendFrame(const IsoTpFrameHeader & header, const uint8_t *data, int num, can_sysinterval_t timeout) {
int dlc = 8; // standard 8 bytes int dlc = 8; // standard 8 bytes