chore: more OTX to ETX housekeeping (#5396)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "rtc_backup.h"
|
||||
|
||||
namespace Backup {
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user