Skip to content
Snippets Groups Projects
Commit 13b6a814 authored by Raymond Chia's avatar Raymond Chia
Browse files

serial comms test

parent 7114929d
No related merge requests found
......@@ -87,14 +87,14 @@ int SerialCommunication::Set_Send_Pkt(int_packet packet_out) {
int SerialCommunication::Send_Packet() {
int bytesSent = 0;
if (Serial.availableForWrite()) {
Serial.print("Send_Packet :: packet size: ");
Serial.println(packet_size);
/* Serial.print("Send_Packet :: packet size: "); */
/* Serial.println(packet_size); */
bytesSent = Serial.write(send_pkt, packet_size);
Serial.flush();
}
/* free(send_pkt); */
Reset_Buffer();
Serial.println();
/* Serial.println(); */
return bytesSent;
}
......
......@@ -67,8 +67,8 @@ void loop() {
SerCom.Read_Update_Request();
update_request = SerCom.Get_Update_Request();
Serial.print("packet size: ");
Serial.println(SerCom.Get_Packet_Size());
/* Serial.print("packet size: "); */
/* Serial.println(SerCom.Get_Packet_Size()); */
if (update_request) {
SerCom.Send_Packet();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment