1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 06:15:10 +03:00

Black screen on simu

This commit is contained in:
Bertrand Songis 2019-06-20 09:27:06 +02:00
parent ab3f033c94
commit b262808aa1
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
3 changed files with 9 additions and 7 deletions

View file

@ -331,14 +331,14 @@ void OpenTxSim::updateKeysAndSwitches(bool start)
SWITCH_KEY(C, 2, 3); SWITCH_KEY(C, 2, 3);
SWITCH_KEY(D, 3, 3); SWITCH_KEY(D, 3, 3);
#if defined(PCBX7) || defined(PCBXLITE) #if defined(HARDWARE_SWITCH_G)
SWITCH_KEY(F, 4, 2);
SWITCH_KEY(H, 5, 2);
#else
SWITCH_KEY(E, 4, 3); SWITCH_KEY(E, 4, 3);
SWITCH_KEY(F, 5, 2); SWITCH_KEY(F, 5, 2);
SWITCH_KEY(G, 6, 3); SWITCH_KEY(G, 6, 3);
SWITCH_KEY(H, 7, 2); SWITCH_KEY(H, 7, 2);
#elif defined(HARDWARE_SWITCH_F) && defined(HARDWARE_SWITCH_H)
SWITCH_KEY(F, 4, 2);
SWITCH_KEY(H, 5, 2);
#endif #endif
#if defined(PCBX9E) #if defined(PCBX9E)

View file

@ -21,6 +21,8 @@
#ifndef _SIMULCD_H_ #ifndef _SIMULCD_H_
#define _SIMULCD_H_ #define _SIMULCD_H_
#include "lcd.h"
extern int g_snapshot_idx; extern int g_snapshot_idx;
extern bool simuLcdRefresh; extern bool simuLcdRefresh;
extern display_t simuLcdBuf[DISPLAY_BUFFER_SIZE]; extern display_t simuLcdBuf[DISPLAY_BUFFER_SIZE];