Added support for delay between commands on CAN

This commit is contained in:
Ján Mátik
2020-12-28 09:31:11 +01:00
parent 3a59431fbd
commit a38c047391
4 changed files with 27 additions and 3 deletions

View File

@@ -251,6 +251,8 @@ class LiveData {
// Canbus
uint8_t rxBuffOffset = 0; // offset of processing received data, in some cars needs to be set to 1, like in BMW i3
uint8_t expectedMinimalPacketLength = 0; // what length of packet should be accepted. Set to 0 to accept any length
uint16_t rxTimeoutMs = 100; // timeout for receiving of CAN response
uint16_t delayBetweenCommandsMs = 0; // delay between commands, set to 0 if no delay is needed
// Params
PARAMS_STRUC params; // Realtime sensor values