ELM327 optimization: sendShortPacketsInOneFrame #3656
This commit is contained in:
parent
0243003c96
commit
17b0b3fff4
|
@ -26,7 +26,7 @@ DDEFS += -DLED_COMMUNICATION_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
||||||
|
|
||||||
# Disable serial ports on this board as UART3 causes a DMA conflict with the SD card
|
# Disable serial ports on this board as UART3 causes a DMA conflict with the SD card
|
||||||
DDEFS += -DTS_NO_PRIMARY -DTS_NO_SECONDARY
|
DDEFS += -DTS_NO_PRIMARY -DTS_NO_SECONDARY
|
||||||
DDEFS += -DEFI_CAN_SERIAL=TRUE -DTS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME=TRUE
|
DDEFS += -DEFI_CAN_SERIAL=TRUE
|
||||||
# todo debug:
|
# todo debug:
|
||||||
DDEFS += -DDISABLE_CAN_UPDATE_DASH=TRUE
|
DDEFS += -DDISABLE_CAN_UPDATE_DASH=TRUE
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ endif
|
||||||
# *TODO* need to give people the horrible choice between Bluetooth via TTL or SD card via SPI :( horrible choice
|
# *TODO* need to give people the horrible choice between Bluetooth via TTL or SD card via SPI :( horrible choice
|
||||||
EFI_CONSOLE_TTL_PINS = -DEFI_CONSOLE_TX_BRAIN_PIN=GPIOB_10 -DEFI_CONSOLE_RX_BRAIN_PIN=GPIOB_11
|
EFI_CONSOLE_TTL_PINS = -DEFI_CONSOLE_TX_BRAIN_PIN=GPIOB_10 -DEFI_CONSOLE_RX_BRAIN_PIN=GPIOB_11
|
||||||
|
|
||||||
DDEFS += -DEFI_CAN_SERIAL=TRUE -DTS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME=TRUE
|
DDEFS += -DEFI_CAN_SERIAL=TRUE
|
||||||
|
|
||||||
|
|
||||||
# Add them all together
|
# Add them all together
|
||||||
|
|
|
@ -27,7 +27,8 @@ public class Elm327IoStream extends AbstractIoStream {
|
||||||
|
|
||||||
// this should match the TS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME in the firmware
|
// this should match the TS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME in the firmware
|
||||||
// todo: move this to rusefi_config.txt / prepend.txt?
|
// todo: move this to rusefi_config.txt / prepend.txt?
|
||||||
private final static boolean sendShortPacketsInOneFrame = true;
|
private final static boolean sendShortPacketsInOneFrame = false;
|
||||||
|
//private final static boolean receiveShortPacketsInOneFrame = sendShortPacketsInOneFrame;
|
||||||
private final static boolean receiveShortPacketsInOneFrame = false;
|
private final static boolean receiveShortPacketsInOneFrame = false;
|
||||||
|
|
||||||
private final IsoTpCanDecoder canDecoder = new IsoTpCanDecoder();
|
private final IsoTpCanDecoder canDecoder = new IsoTpCanDecoder();
|
||||||
|
|
Loading…
Reference in New Issue