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
+2 -2
View File
@@ -20,7 +20,7 @@
*/
#include "opentxsimulator.h"
#include "opentx.h"
#include "edgetx.h"
#include "simulcd.h"
#include "switches.h"
@@ -558,7 +558,7 @@ void OpenTxSimulator::checkOutputsChanged()
const static int16_t limit = 512 * 2;
qint32 tmpVal;
uint8_t i, idx;
const uint8_t phase = getFlightMode(); // opentx.cpp
const uint8_t phase = getFlightMode(); // edgetx.cpp
for (i=0; i < chansDim; i++) {
if (lastOutputs.chans[i] != channelOutputs[i] || m_resetOutputsData) {
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _OPENTX_SIMULATOR_H_
#define _OPENTX_SIMULATOR_H_
#pragma once
#include "simulatorinterface.h"
@@ -111,5 +110,3 @@ class DLLEXPORT OpenTxSimulator : public SimulatorInterface
bool m_stopRequested;
};
#endif // _OPENTX_SIMULATOR_H_
+1 -4
View File
@@ -30,8 +30,7 @@
THE SOFTWARE.
*/
#ifndef RS232_H
#define RS232_H
#pragma once
#ifdef __cplusplus
extern "C" {
@@ -151,5 +150,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif // RS232_H
+1 -1
View File
@@ -26,7 +26,7 @@
#include <SDL.h>
#endif
#include "opentx.h"
#include "edgetx.h"
#include "simulcd.h"
#include "hal/adc_driver.h"
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _SIMPGMSPACE_H_
#define _SIMPGMSPACE_H_
#pragma once
#include <unistd.h>
#define sleep(x) usleep(1000*x)
@@ -94,5 +93,3 @@ void simuMain();
extern struct TouchState simTouchState;
extern bool simTouchOccured;
#endif
#endif // _SIMPGMSPACE_H_
+1 -1
View File
@@ -20,7 +20,7 @@
*/
#if defined(SIMU_DISKIO)
#include "opentx.h"
#include "edgetx.h"
#include "ff.h"
#include "diskio.h"
#include <time.h>
+1 -1
View File
@@ -19,7 +19,7 @@
* GNU General Public License for more details.
*/
#include "opentx.h"
#include "edgetx.h"
const char * eepromFile = nullptr;
FILE * fp = nullptr;
+1 -1
View File
@@ -23,7 +23,7 @@
#include <string>
#include <vector>
#include <algorithm>
#include "opentx.h"
#include "edgetx.h"
#if defined(SIMU_USE_SDCARD) // rest of file is excluded otherwise
+2 -5
View File
@@ -19,10 +19,9 @@
* GNU General Public License for more details.
*/
#ifndef _SIMULCD_H_
#define _SIMULCD_H_
#pragma once
#include "opentx_types.h"
#include "edgetx_types.h"
#include "lcd.h"
extern int g_snapshot_idx;
@@ -34,5 +33,3 @@ extern pixel_t* simuLcdBuf;
extern pixel_t simuLcdBuf[DISPLAY_BUFFER_SIZE];
extern pixel_t displayBuf[DISPLAY_BUFFER_SIZE];
#endif
#endif // _SIMULCD_H_