Skip to content

Commit b1c62a1

Browse files
authored
Merge pull request #38 from zshzebra/master
Add compatibility with SAMD21 properly
2 parents 77cdc03 + 02074fe commit b1c62a1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/mt_internals.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#ifndef MT_INTERNALS_H
22
#define MT_INTERNALS_H
33

4-
// As per original code: to support Adafruit Feather M0 WiFi
5-
#ifdef ARDUINO_ARCH_SAMD
6-
#define MT_WIFI_SUPPORTED
7-
#endif
8-
94
#include "Meshtastic.h"
105

116
extern bool mt_debugging;

src/mt_serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void mt_serial_init(int8_t rx_pin, int8_t tx_pin, uint32_t baud) {
1515

1616
// Platform specific: init serial
1717
#if defined(ARDUINO_ARCH_SAMD)
18-
// No call to begin(), as per original code
18+
serial->begin(baud);
1919
#elif defined(ARDUINO_ARCH_ESP32)
2020
serial->begin(baud, SERIAL_8N1, rx_pin, tx_pin);
2121
#else

0 commit comments

Comments
 (0)