ELM327 optimization: sendShortPacketsInOneFrame #3656

This commit is contained in:
rusefillc 2021-12-05 00:43:04 -05:00
parent 0243003c96
commit 17b0b3fff4
3 changed files with 4 additions and 3 deletions

View File

@ -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
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:
DDEFS += -DDISABLE_CAN_UPDATE_DASH=TRUE

View File

@ -26,7 +26,7 @@ endif
# *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
DDEFS += -DEFI_CAN_SERIAL=TRUE -DTS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME=TRUE
DDEFS += -DEFI_CAN_SERIAL=TRUE
# Add them all together

View File

@ -27,7 +27,8 @@ public class Elm327IoStream extends AbstractIoStream {
// this should match the TS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME in the firmware
// 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 IsoTpCanDecoder canDecoder = new IsoTpCanDecoder();