FlowControl timeout to 20ms; Speaker fix

Signed-off-by: Martin Kolací <martin.kolaci@lmc.eu>
This commit is contained in:
Martin Kolací
2020-12-23 17:44:38 +01:00
parent dc2bab754a
commit 1f20e50424
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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) {