From 8dc7ca3b4f7b185b3f5321ce083372af1f9f268b Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Thu, 9 Jun 2016 22:39:42 +1000 Subject: [PATCH] Potential TS3 serial fixes --- comms.ino | 6 ++++-- reference/speeduino.ini | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/comms.ino b/comms.ino index 45ef9150..7825a03a 100644 --- a/comms.ino +++ b/comms.ino @@ -72,7 +72,8 @@ void command() break; case 'Q': // send code version - Serial.print(signature); + //Serial.print(signature); + Serial.write(signature); break; //The following requires TunerStudio 3 @@ -257,8 +258,9 @@ void sendValues(int length) response[31] = lowByte(currentStatus.rpmDOT); response[32] = highByte(currentStatus.rpmDOT); +cli(); Serial.write(response, (size_t)packetSize); - +sei(); //if(Serial.available()) { command(); } //Serial.flush(); return; diff --git a/reference/speeduino.ini b/reference/speeduino.ini index 36ae059c..88d92a4a 100644 --- a/reference/speeduino.ini +++ b/reference/speeduino.ini @@ -90,10 +90,10 @@ tableBlockingFactor = 2048 delayAfterPortOpen=1000 ;validateArrayBounds = true - blockReadTimeout = 700 + blockReadTimeout = 1000 ;tsWriteBlocks = on ; writeBlocks = on - ;interWriteDelay = 12 + interWriteDelay = 0 ;Page 1 is the fuel map and axis bins only page = 1