Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mstegen committed Jul 10, 2019
1 parent b765388 commit 861e9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sensorbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void main(void)
RC1STAbits.CREN = 0;
RC1STAbits.CREN = 1; // Restart Uart

SecTimer = Timer+5000; // Wait 5 seconds before sending anything
SecTimer = Timer+5000; // Wait 5 seconds before sending anything
}

// Receive data from modbus
Expand Down Expand Up @@ -435,7 +435,7 @@ void main(void)
Tbuffer[n++] = pBytes[2];
Tbuffer[n++] = pBytes[3];
}
// Frame Check Sequence (FCS) Field
// Frame Check Sequence (FCS) Field
cs = crc16sensorbox1(Tbuffer, n); // calculate CRC16 from data
Tbuffer[n++] = ((unsigned char)(cs));
Tbuffer[n++] = ((unsigned char)(cs>>8));
Expand Down

0 comments on commit 861e9d1

Please sign in to comment.