chore: more OTX to ETX housekeeping (#5396)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <SDL.h>
|
||||
#endif
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "simulcd.h"
|
||||
|
||||
#include "hal/adc_driver.h"
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#if defined(SIMU_DISKIO)
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
#include "ff.h"
|
||||
#include "diskio.h"
|
||||
#include <time.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "opentx.h"
|
||||
#include "edgetx.h"
|
||||
|
||||
const char * eepromFile = nullptr;
|
||||
FILE * fp = nullptr;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user