mirror of https://github.com/rusefi/speeduino.git
More formatting changes
This commit is contained in:
parent
b739618ebc
commit
dc40b0a0a8
12
comms.ino
12
comms.ino
|
@ -198,15 +198,16 @@ void command()
|
|||
/*
|
||||
This function returns the current values of a fixed group of variables
|
||||
*/
|
||||
void sendValues(int packetlength, byte portnum)
|
||||
void sendValues(int packetlength, byte portNum)
|
||||
{
|
||||
byte response[packetlength];
|
||||
|
||||
if (portnum == 3){ //if port number is 3
|
||||
if (portNum == 3)
|
||||
{
|
||||
//CAN serial
|
||||
Serial3.write("A"); //confirm cmd type
|
||||
Serial3.write(packetlength); //confirm no of byte to be sent
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if(requestCount == 0) { currentStatus.secl = 0; }
|
||||
|
@ -260,9 +261,8 @@ void sendValues(int packetlength, byte portnum)
|
|||
response[34] = getNextError();
|
||||
|
||||
//cli();
|
||||
if (portnum == 0){Serial.write(response, (size_t)packetlength);}
|
||||
else if (portnum == 3){Serial3.write(response, (size_t)packetlength);}
|
||||
//Serial.flush();
|
||||
if (portNum == 0) { Serial.write(response, (size_t)packetlength); }
|
||||
else if (portNum == 3) { Serial3.write(response, (size_t)packetlength); }
|
||||
//sei();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue