Skip to content

Commit

Permalink
Restructure header hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Jan 25, 2024
1 parent 6c5a5c0 commit b88280a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/mt_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,11 @@
#define MT_SOFTWARESERIAL_SUPPORTED
#endif

#include "Meshtastic.h"

extern bool mt_debugging;
void mt_debug_print(const char * s);
#define d(s) mt_debug_print(s)

extern bool mt_wifi_mode;
extern bool mt_serial_mode;

bool mt_wifi_loop(uint32_t now);
bool mt_serial_loop();

size_t mt_wifi_check_radio(char * buf, size_t space_left);
size_t mt_serial_check_radio(char * buf, size_t space_left);

bool mt_wifi_send_radio(const char * buf, size_t len);
bool mt_serial_send_radio(const char * buf, size_t len);

void mt_wifi_reset_idle_timeout(uint32_t now);

#endif
1 change: 1 addition & 0 deletions src/mt_serial.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "mt_internals.h"
#include "mt_serial.h"

#ifdef MT_SOFTWARESERIAL_SUPPORTED
#include <SoftwareSerial.h>
Expand Down
5 changes: 5 additions & 0 deletions src/mt_serial.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <Arduino.h>

size_t mt_serial_check_radio(char * buf, size_t space_left);
bool mt_serial_send_radio(const char * buf, size_t len);
bool mt_serial_loop();
1 change: 1 addition & 0 deletions src/mt_wifi.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "mt_wifi.h"
#ifdef MT_WIFI_SUPPORTED

#include <WiFi101.h>
Expand Down
6 changes: 6 additions & 0 deletions src/mt_wifi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <Arduino.h>

bool mt_wifi_loop(uint32_t now);
size_t mt_wifi_check_radio(char * buf, size_t space_left);
bool mt_wifi_send_radio(const char * buf, size_t len);
void mt_wifi_reset_idle_timeout(uint32_t now);

0 comments on commit b88280a

Please sign in to comment.