Skip to content

Commit 1ac6a2e

Browse files
committed
Lora out of Lite
1 parent 05dcce1 commit 1ac6a2e

File tree

7 files changed

+30
-21
lines changed

7 files changed

+30
-21
lines changed

include/VectorDisplay.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ class VectorDisplayClass : public Print {
859859

860860
int16_t getCursorY(void) { return cursor_y; }
861861

862-
void setTextWrap(bool w) { wrap = w; }
862+
void setTextWrap(bool x, bool wrapY = false) { wrap = x; }
863863

864864
int16_t drawRightString(const char *string, int32_t x, int32_t y, uint8_t font) {
865865
// TODO: add spaces
@@ -1184,7 +1184,8 @@ class VectorDisplayClass : public Print {
11841184
}
11851185
}
11861186
if (corners & 1) {
1187-
arc(cx, cy, r, TO_FP32(270), TO_FP32(180), false
1187+
arc(
1188+
cx, cy, r, TO_FP32(270), TO_FP32(180), false
11881189
); // drawing edges separately makes things fit better
11891190
arc(cx, cy, r, TO_FP32(270), TO_FP32(180), true);
11901191
arc(cx, cy + delta, r, TO_FP32(270), TO_FP32(180), false);

src/core/main_menu.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ MainMenu::MainMenu() {
1919
&fileMenu,
2020
&gpsMenu,
2121
&nrf24Menu,
22-
#if !defined(LITE_VERSION) && !defined(DISABLE_INTERPRETER)
22+
#if !defined(LITE_VERSION)
23+
#if !defined(DISABLE_INTERPRETER)
2324
&scriptsMenu,
2425
#endif
2526
&loraMenu,
27+
#endif
2628
&othersMenu,
2729
&clockMenu,
2830
#if !defined(LITE_VERSION)

src/core/main_menu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class MainMenu {
3535
RFMenu rfMenu;
3636
ScriptsMenu scriptsMenu;
3737
WifiMenu wifiMenu;
38-
LoRaMenu loraMenu;
3938
#if !defined(LITE_VERSION)
39+
LoRaMenu loraMenu;
4040
EthernetMenu ethernetMenu;
4141
#endif
4242

src/core/menu_items/LoRaMenu.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !defined(LITE_VERSION)
12
#include "LoRaMenu.h"
23
#include "core/display.h"
34
#include "core/utils.h"
@@ -90,3 +91,4 @@ void LoRaMenu::drawIcon(float scale) {
9091
tft.drawArc(cx, ballY, r1 + lineWidth, r1, 240, 300, bruceConfig.priColor, bruceConfig.bgColor);
9192
tft.drawArc(cx, ballY, r2 + lineWidth, r2, 240, 300, bruceConfig.priColor, bruceConfig.bgColor);
9293
}
94+
#endif

src/core/menu_items/LoRaMenu.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#ifndef __LORA_MENU_H__
22
#define __LORA_MENU_H__
3-
3+
#if !defined(LITE_VERSION)
44
#include <MenuItemInterface.h>
55

6-
void lorachat();
7-
void changeusername();
8-
void chfreq();
6+
void lorachat();
7+
void changeusername();
8+
void chfreq();
99

10-
class LoRaMenu : public MenuItemInterface {
11-
private:
12-
void configMenu(void);
10+
class LoRaMenu : public MenuItemInterface {
11+
private:
12+
void configMenu(void);
1313

14-
public:
15-
LoRaMenu() : MenuItemInterface("LoRa") {}
14+
public:
15+
LoRaMenu() : MenuItemInterface("LoRa") {}
1616

17-
void optionsMenu(void);
18-
void drawIcon(float scale);
19-
void drawIconImg();
20-
bool getTheme() { return bruceConfig.theme.lora; }
21-
};
17+
void optionsMenu(void);
18+
void drawIcon(float scale);
19+
void drawIconImg();
20+
bool getTheme() { return bruceConfig.theme.lora; }
21+
};
2222

2323
#endif
24-
24+
#endif

src/modules/lora/LoRaRF.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !defined(LITE_VERSION)
12
#include "LoRaRF.h"
23
#include "WString.h"
34
#include "core/config.h"
@@ -300,3 +301,4 @@ void chfreq() {
300301
serializeJson(doc, file);
301302
file.close();
302303
}
304+
#endif

src/modules/lora/LoRaRF.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

2-
//#ifndef __LORA_MENU_H__
3-
//#define __LORA_MENU_H__
2+
// #ifndef __LORA_MENU_H__
3+
// #define __LORA_MENU_H__
44
#ifndef __LORA_RF_H__
55
#define __LORA_RF_H__
6+
#if !defined(LITE_VERSION)
67
#include "HWCDC.h"
78
void lorachat();
89
void loraconf();
910
#endif
11+
#endif

0 commit comments

Comments
 (0)