Skip to content

Commit

Permalink
fix disarm crash
Browse files Browse the repository at this point in the history
  • Loading branch information
henkwiedig committed Nov 1, 2024
1 parent 6db882a commit cbfb5fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ static void process_draw_string(uint8_t *payload) {

for(uint8_t idx = 0; idx < actual_length; idx++) { //MSP Disployport message is max 30
uint16_t character = payload[3 + idx];
osd[row-1][col + idx -1 ]=character;
osd_page[row-1][col + idx -1 ]=payload[2] & 0x3;
osd[row][col + idx ]=character;
osd_page[row][col + idx]=payload[2] & 0x3;
//printf("%i %i\n",row,col);
}
}
Expand Down

0 comments on commit cbfb5fc

Please sign in to comment.