Skip to content

Commit

Permalink
fix stalling issue when framebuffer fills
Browse files Browse the repository at this point in the history
  • Loading branch information
bri3d committed Jul 14, 2022
1 parent 3dc2437 commit ea450e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msp_displayport_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ static void rx_msp_callback(msp_msg_t *msp_message)
if(msp_message->cmd == MSP_CMD_DISPLAYPORT) {
// This was an MSP DisplayPort message, so buffer it until we get a whole frame.
if(fb_cursor > sizeof(frame_buffer)) {
printf("Exhausted frame buffer!\n");
printf("Exhausted frame buffer! Resetting...\n");
fb_cursor = 0;
return;
}
uint16_t size = msp_data_from_msg(message_buffer, msp_message);
Expand Down

0 comments on commit ea450e5

Please sign in to comment.