Potential fix for TS3 disconnection issue
This commit is contained in:
parent
1089c3ace4
commit
6254c405ca
15
comms.ino
15
comms.ino
|
@ -57,6 +57,10 @@ void command()
|
|||
sendValues(39);
|
||||
break;
|
||||
|
||||
case 'F': // send serial protocol version
|
||||
Serial.print("001");
|
||||
break;
|
||||
|
||||
case 'S': // send code version
|
||||
//Serial.print(signature);
|
||||
//break;
|
||||
|
@ -71,11 +75,13 @@ void command()
|
|||
//Serial.write(titleString,16);
|
||||
*/
|
||||
Serial.print("Speeduino 2016.06-pre");
|
||||
currentStatus.secl = 0; //This is required in TS3 due to its stricter timings
|
||||
break;
|
||||
|
||||
case 'Q': // send code version
|
||||
//Serial.print(signature);
|
||||
Serial.write(signature);
|
||||
//Serial.print("speeduino 2016.06");
|
||||
Serial.print(signature);
|
||||
//Serial.write(signature);
|
||||
break;
|
||||
|
||||
//The following requires TunerStudio 3
|
||||
|
@ -264,9 +270,10 @@ void sendValues(int length)
|
|||
|
||||
response[33] = currentStatus.flex; //Flex sensor value (or 0 if not used)
|
||||
|
||||
cli();
|
||||
//cli();
|
||||
Serial.write(response, (size_t)packetSize);
|
||||
sei();
|
||||
//Serial.flush();
|
||||
//sei();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
|
||||
queryCommand = "Q"
|
||||
signature = 20
|
||||
;signature = "speeduino 2016.05"
|
||||
;signature = "speeduino 2016.06"
|
||||
versionInfo = "S" ; Put this in the title bar.
|
||||
|
||||
|
||||
[TunerStudio]
|
||||
iniSpecVersion = 3.24
|
||||
;[TunerStudio]
|
||||
; iniSpecVersion = 3.24
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
|
||||
|
@ -90,10 +90,10 @@
|
|||
tableBlockingFactor = 2048
|
||||
delayAfterPortOpen=1000
|
||||
;validateArrayBounds = true
|
||||
blockReadTimeout = 1000
|
||||
blockReadTimeout = 2000
|
||||
;tsWriteBlocks = on
|
||||
; writeBlocks = on
|
||||
interWriteDelay = 0
|
||||
interWriteDelay = 10
|
||||
|
||||
;Page 1 is the fuel map and axis bins only
|
||||
page = 1
|
||||
|
|
Loading…
Reference in New Issue