This commit is contained in:
rusefi 2020-04-13 19:01:34 -04:00
commit b02b5f2202
3 changed files with 10 additions and 3 deletions

View File

@ -4,6 +4,13 @@
*
* @brief Configuration defaults for the microRusefi board
*
* MICRO_RUS_EFI
* set engine_type 60
*
* MRE_BOARD_TEST
* set engine_type 30
*
*
* See https://github.com/rusefi/rusefi_documentation/wiki/Hardware_microRusEfi_wiring
*
* @author Matthew Kennedy, (c) 2019

View File

@ -23,11 +23,11 @@ extern LoggingWithStorage sharedLogger;
s_device = device;
}
CanTxMessage::CanTxMessage(uint32_t eid) {
CanTxMessage::CanTxMessage(uint32_t eid, uint8_t dlc) {
m_frame.IDE = CAN_IDE_STD;
m_frame.EID = eid;
m_frame.RTR = CAN_RTR_DATA;
m_frame.DLC = 8;
m_frame.DLC = dlc;
memset(m_frame.data8, 0, sizeof(m_frame.data8));
}

View File

@ -28,7 +28,7 @@ public:
/**
* Create a new CAN message, with the specified extended ID.
*/
CanTxMessage(uint32_t eid);
CanTxMessage(uint32_t eid, uint8_t dlc = 8);
/**
* Destruction of an instance of CanTxMessage will transmit the message over the wire.