FlowControl timeout to 20ms; Speaker fix
Signed-off-by: Martin Kolací <martin.kolaci@lmc.eu>
This commit is contained in:
@@ -21,7 +21,7 @@ void BoardM5stackCore::initBoard() {
|
|||||||
|
|
||||||
// Mute speaker
|
// Mute speaker
|
||||||
//ledcWriteTone(TONE_PIN_CHANNEL, 0);
|
//ledcWriteTone(TONE_PIN_CHANNEL, 0);
|
||||||
digitalWrite(SPEAKER_PIN, 0);
|
dacWrite(SPEAKER_PIN, 0);
|
||||||
|
|
||||||
//
|
//
|
||||||
Board320_240::initBoard();
|
Board320_240::initBoard();
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ void CommObd2Can::sendPID(const uint16_t pid, const String& cmd) {
|
|||||||
*/
|
*/
|
||||||
void CommObd2Can::sendFlowControlFrame() {
|
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
|
// insert 0x07 into beginning for BMW i3
|
||||||
if (liveData->settings.carType == CAR_BMW_I3_2014) {
|
if (liveData->settings.carType == CAR_BMW_I3_2014) {
|
||||||
|
|||||||
Reference in New Issue
Block a user