File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ static void sig_handler(int _)
35
35
36
36
static void msp_callback (msp_msg_t * msp_message )
37
37
{
38
+ DEBUG_PRINT ("MSP cmd %d with data len %d \n" , msp_message -> cmd , msp_message -> size );
39
+
38
40
// Process a received MSP message and decide whether to send it to the PTY (DJI) or UDP port (MSP-OSD on Goggles)
39
41
if (msp_message -> cmd == MSP_CMD_DISPLAYPORT ) {
40
42
if (fb_cursor > sizeof (frame_buffer )) {
@@ -121,13 +123,11 @@ int main(int argc, char *argv[]) {
121
123
if (msp_process_data (msp_state , serial_data [i ]) == 0 ) {
122
124
// 0 -> MSP data was valid, so buffer it to forward on later
123
125
message_buffer [cursor ] = serial_data [i ];
124
- DEBUG_PRINT ("%02X " , serial_data [i ]);
125
126
cursor ++ ;
126
127
} else {
127
128
cursor = 0 ;
128
129
}
129
130
}
130
- DEBUG_PRINT ("\n" );
131
131
}
132
132
133
133
// If serial passthrough is enabled, send the message through verbatim.
You can’t perform that action at this time.
0 commit comments