From 1f20e5042419648c045228cd0e2715f0057e5079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kolac=C3=AD?= Date: Wed, 23 Dec 2020 17:44:38 +0100 Subject: [PATCH] FlowControl timeout to 20ms; Speaker fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin KolacĂ­ --- BoardM5stackCore.cpp | 2 +- CommObd2Can.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BoardM5stackCore.cpp b/BoardM5stackCore.cpp index e41afd0..523a067 100644 --- a/BoardM5stackCore.cpp +++ b/BoardM5stackCore.cpp @@ -21,7 +21,7 @@ void BoardM5stackCore::initBoard() { // Mute speaker //ledcWriteTone(TONE_PIN_CHANNEL, 0); - digitalWrite(SPEAKER_PIN, 0); + dacWrite(SPEAKER_PIN, 0); // Board320_240::initBoard(); diff --git a/CommObd2Can.cpp b/CommObd2Can.cpp index 6607d9b..ba3881c 100644 --- a/CommObd2Can.cpp +++ b/CommObd2Can.cpp @@ -196,7 +196,7 @@ void CommObd2Can::sendPID(const uint16_t pid, const String& cmd) { */ void CommObd2Can::sendFlowControlFrame() { - uint8_t txBuf[8] = { 0x30, requestFramesCount /*request count*/, 14 /*ms between frames*/ , 0, 0, 0, 0, 0 }; + uint8_t txBuf[8] = { 0x30, requestFramesCount /*request count*/, 20 /*ms between frames*/ , 0, 0, 0, 0, 0 }; // insert 0x07 into beginning for BMW i3 if (liveData->settings.carType == CAR_BMW_I3_2014) {