Skip to content

Commit b88280a

Browse files
committed
Restructure header hierarchy
1 parent 6c5a5c0 commit b88280a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/mt_internals.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,11 @@
77
#define MT_SOFTWARESERIAL_SUPPORTED
88
#endif
99

10-
#include "Meshtastic.h"
11-
1210
extern bool mt_debugging;
1311
void mt_debug_print(const char * s);
1412
#define d(s) mt_debug_print(s)
1513

1614
extern bool mt_wifi_mode;
1715
extern bool mt_serial_mode;
1816

19-
bool mt_wifi_loop(uint32_t now);
20-
bool mt_serial_loop();
21-
22-
size_t mt_wifi_check_radio(char * buf, size_t space_left);
23-
size_t mt_serial_check_radio(char * buf, size_t space_left);
24-
25-
bool mt_wifi_send_radio(const char * buf, size_t len);
26-
bool mt_serial_send_radio(const char * buf, size_t len);
27-
28-
void mt_wifi_reset_idle_timeout(uint32_t now);
29-
3017
#endif

src/mt_serial.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "mt_internals.h"
2+
#include "mt_serial.h"
23

34
#ifdef MT_SOFTWARESERIAL_SUPPORTED
45
#include <SoftwareSerial.h>

src/mt_serial.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <Arduino.h>
2+
3+
size_t mt_serial_check_radio(char * buf, size_t space_left);
4+
bool mt_serial_send_radio(const char * buf, size_t len);
5+
bool mt_serial_loop();

src/mt_wifi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "mt_wifi.h"
12
#ifdef MT_WIFI_SUPPORTED
23

34
#include <WiFi101.h>

src/mt_wifi.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <Arduino.h>
2+
3+
bool mt_wifi_loop(uint32_t now);
4+
size_t mt_wifi_check_radio(char * buf, size_t space_left);
5+
bool mt_wifi_send_radio(const char * buf, size_t len);
6+
void mt_wifi_reset_idle_timeout(uint32_t now);

0 commit comments

Comments
 (0)