Skip to content

Commit

Permalink
update of JSON parser [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed May 3, 2024
1 parent abb9fae commit c07558a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions software/firmware/source/SoftRF/src/protocol/data/JSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,12 @@ void parseSettings(JsonObject& root)
eeprom_block.field.settings.rf_protocol = RF_PROTOCOL_FANET;
} else if (!strcmp(protocol_s,"UAT")) {
eeprom_block.field.settings.rf_protocol = RF_PROTOCOL_ADSB_UAT;
} else if (!strcmp(protocol_s,"ADS-B")) {
eeprom_block.field.settings.rf_protocol = RF_PROTOCOL_ADSB_1090;
} else if (!strcmp(protocol_s,"APRS") || !strcmp(protocol_s,"PROL")) {
eeprom_block.field.settings.rf_protocol = RF_PROTOCOL_APRS;
} else if (!strcmp(protocol_s,"ADS-L")) {
eeprom_block.field.settings.rf_protocol = RF_PROTOCOL_ADSL_860;
}
}

Expand Down

0 comments on commit c07558a

Please sign in to comment.