chore: more OTX to ETX housekeeping (#5396)

This commit is contained in:
Peter Feerick
2024-08-14 21:02:29 +10:00
committed by GitHub
parent 0768091fe1
commit 839cfbd53c
487 changed files with 537 additions and 1651 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
using std::list;
#if defined(SDCARD_YAML)
#include "opentx.h"
#include "edgetx.h"
#include "storage/sdcard_yaml.h"
#include "yaml/yaml_datastructs.h"
#include "yaml/yaml_labelslist.h"
+1 -4
View File
@@ -19,10 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _RLC_H_
#define _RLC_H_
#pragma once
unsigned int compress(uint8_t * dst, unsigned int dstsize, const uint8_t * src, unsigned int len);
unsigned int uncompress(uint8_t * dst, unsigned int dstsize, const uint8_t * src, unsigned int len);
#endif
+1 -1
View File
@@ -19,7 +19,7 @@
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "edgetx.h"
#include "rtc_backup.h"
namespace Backup {
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _RTC_BACKUP_H_
#define _RTC_BACKUP_H_
#pragma once
#include "definitions.h"
@@ -35,5 +34,3 @@ void rambackupWrite();
bool rambackupRestore();
unsigned int compress(uint8_t * dst, unsigned int dstsize, const uint8_t * src, unsigned int len);
unsigned int uncompress(uint8_t * dst, unsigned int dstsize, const uint8_t * src, unsigned int len);
#endif // _RTC_BACKUP_H_
+1 -1
View File
@@ -19,7 +19,7 @@
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "edgetx.h"
#include "storage.h"
#include "sdcard_common.h"
#include "modelslist.h"
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _SDCARD_COMMON_H_
#define _SDCARD_COMMON_H_
#pragma once
#include "ff.h"
#include "translations.h"
@@ -85,5 +84,3 @@ const char * loadRadioSettings(const char * path);
const char * loadRadioSettings();
void checkModelIdUnique(uint8_t index, uint8_t module);
#endif // _SDCARD_RAW_H_
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _SDCARD_RAW_H_
#define _SDCARD_RAW_H_
#pragma once
#include "FatFs/ff.h"
@@ -44,5 +43,3 @@ const char* readModelBin(const char* filename, uint8_t* buffer, uint32_t size,
uint8_t* version);
const char* writeModelBin();
#endif
+3 -3
View File
@@ -21,8 +21,8 @@
#include "hal/adc_driver.h"
#include "myeeprom.h"
#include "opentx.h"
#include "opentx_helpers.h"
#include "edgetx.h"
#include "edgetx_helpers.h"
#include "storage.h"
#include "sdcard_common.h"
#include "sdcard_raw.h"
@@ -351,7 +351,7 @@ const char * readModelYaml(const char * filename, uint8_t * buffer, uint32_t siz
auto md = reinterpret_cast<ModelData*>(buffer);
#if defined(FLIGHT_MODES) && defined(GVARS)
// reset GVars to default values
// Note: taken from opentx.cpp::modelDefault()
// Note: taken from edgetx.cpp::modelDefault()
//TODO: new func in gvars
for (int p=1; p<MAX_FLIGHT_MODES; p++) {
for (int i=0; i<MAX_GVARS; i++) {
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _STORAGE_H_
#define _STORAGE_H_
#pragma once
#if defined(SIMU)
#define WRITE_DELAY_10MS 100
@@ -81,5 +80,3 @@ uint8_t findNextUnusedModelId(uint8_t index, uint8_t module);
#if defined(RTC_BACKUP_RAM)
#include "rtc_backup.h"
#endif
#endif // _STORAGE_H_
+1 -1
View File
@@ -19,7 +19,7 @@
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "edgetx.h"
#include "timers_driver.h"
#include "tasks/mixer_task.h"
#include "mixes.h"
+1 -1
View File
@@ -19,7 +19,7 @@
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "edgetx.h"
#include "yaml_node.h"
// Warning: this file must be kept in sync with the CMakeLists.txt
@@ -19,8 +19,8 @@
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "opentx_constants.h"
#include "edgetx.h"
#include "edgetx_constants.h"
#include "yaml_bits.h"
#include "yaml_node.h"
#include "yaml_tree_walker.h"