More formatting changes

This commit is contained in:
Josh Stewart 2016-10-01 02:06:09 +10:00
parent b739618ebc
commit dc40b0a0a8
2 changed files with 17 additions and 17 deletions

View File

@ -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;
}