Skip to content

Commit

Permalink
Make the flight mode more legible
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtyfive authored Oct 14, 2023
1 parent 609b194 commit 54b43d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firmware/src/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ void send_msp_displayport_write() {
// Attributes
payload[3] = 0;
// String (all letters must be uppercase, lowercase letters map to symbols)
char mode_chars[3] = {'D', 'C', '\0'};
if(1 == main_get_armed_state() ) mode_chars[0] = 'A';
if(elrs_channel(5) > 0) mode_chars[1] = 'A';
// Indicate flight mode followed by an asterisk if armed
char mode_chars[7] = "ACRO ";
if(elrs_channel(5) > 0) snprintf(mode_chars, 6, "ANGL ");
if(1 == main_get_armed_state()) mode_chars[4] = '*';
snprintf((char*)payload+4, 10, "%s", mode_chars);

// Send the payload
send_msp(182, payload, 14);

Expand Down

0 comments on commit 54b43d7

Please sign in to comment.