Skip to content

Commit ea450e5

Browse files
committed
fix stalling issue when framebuffer fills
1 parent 3dc2437 commit ea450e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

msp_displayport_mux.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ static void rx_msp_callback(msp_msg_t *msp_message)
9292
if(msp_message->cmd == MSP_CMD_DISPLAYPORT) {
9393
// This was an MSP DisplayPort message, so buffer it until we get a whole frame.
9494
if(fb_cursor > sizeof(frame_buffer)) {
95-
printf("Exhausted frame buffer!\n");
95+
printf("Exhausted frame buffer! Resetting...\n");
96+
fb_cursor = 0;
9697
return;
9798
}
9899
uint16_t size = msp_data_from_msg(message_buffer, msp_message);

0 commit comments

Comments
 (0)