Skip to content

Commit

Permalink
[JSON] parse two more of aircraft types
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Dec 12, 2024
1 parent 844251d commit d3e7450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion software/firmware/source/SoftRF/src/platform/STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ extern char *dtostrf_workaround(double, signed char, unsigned char, char *);
#define snprintf_P snprintf
#define EEPROM_commit() {}

//#define yield() ({ })
inline void yield() { };

#define AN3155_BR 115200
Expand Down
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/protocol/data/JSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,8 @@ void parseSettings(JsonObject& root)
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_TOWPLANE;
} else if (!strcmp(aircraft_type_s,"POWERED")) {
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_POWERED;
} else if (!strcmp(aircraft_type_s,"JET")) {
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_JET;
} else if (!strcmp(aircraft_type_s,"HELICOPTER")) {
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_HELICOPTER;
} else if (!strcmp(aircraft_type_s,"UAV")) {
Expand All @@ -753,6 +755,8 @@ void parseSettings(JsonObject& root)
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_HANGGLIDER;
} else if (!strcmp(aircraft_type_s,"PARAGLIDER")) {
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_PARAGLIDER;
} else if (!strcmp(aircraft_type_s,"PARACHUTE")) {
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_PARACHUTE;
} else if (!strcmp(aircraft_type_s,"BALLOON")) {
eeprom_block.field.settings.aircraft_type = AIRCRAFT_TYPE_BALLOON;
} else if (!strcmp(aircraft_type_s,"STATIC")) {
Expand Down

0 comments on commit d3e7450

Please sign in to comment.