Merge branch 'master' of https://github.com/rusefi/rusefi
This commit is contained in:
commit
b02b5f2202
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue