@@ -23,6 +23,8 @@ PayloadHandler ::~PayloadHandler() {}
2323
2424void PayloadHandler ::in_port_handler (FwIndexType portNum, Fw::Buffer& buffer, const Drv::ByteStreamStatus& status) {
2525
26+ this ->log_ACTIVITY_LO_UartReceived ();
27+
2628 const U8* data = buffer.getData ();
2729 FwSizeType size = buffer.getSize ();
2830
@@ -38,7 +40,7 @@ void PayloadHandler ::in_port_handler(FwIndexType portNum, Fw::Buffer& buffer, c
3840 if (m_lineIndex < sizeof (m_lineBuffer) - 1 ) {
3941 m_lineBuffer[m_lineIndex++] = byte;
4042 }
41-
43+ this -> log_ACTIVITY_LO_ByteReceived (byte);
4244 // Have we reached the end of the line? If so that means we have a header
4345 // Check to see what the header is.
4446 if (byte == ' \n ' || byte == ' \r ' ) {
@@ -48,6 +50,7 @@ void PayloadHandler ::in_port_handler(FwIndexType portNum, Fw::Buffer& buffer, c
4850 // Check the header.
4951 // Right now I'm just checking for an image start tag, but we can expand this to other types later
5052 if (strstr ((const char *)m_lineBuffer, " <IMG_START>" )) {
53+ this ->log_ACTIVITY_LO_ImageHeaderReceived ();
5154 m_receiving = true ;
5255 m_bytes_received = 0 ;
5356 m_expected_size = 0 ;
@@ -88,6 +91,7 @@ void PayloadHandler ::in_port_handler(FwIndexType portNum, Fw::Buffer& buffer, c
8891 // Write a byte to the file
8992 FwSizeType oneByte = 1 ;
9093 m_file.write (&byte, oneByte);
94+ this ->log_ACTIVITY_LO_ByteReceived (byte);
9195 m_bytes_received++;
9296
9397 // Check to see if we are done receiving
0 commit comments