Skip to content

Add compatibility with SAMD21 properly #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/mt_internals.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#ifndef MT_INTERNALS_H
#define MT_INTERNALS_H

// As per original code: to support Adafruit Feather M0 WiFi
#ifdef ARDUINO_ARCH_SAMD
#define MT_WIFI_SUPPORTED
#endif

#include "Meshtastic.h"

extern bool mt_debugging;
Expand Down
2 changes: 1 addition & 1 deletion src/mt_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void mt_serial_init(int8_t rx_pin, int8_t tx_pin, uint32_t baud) {

// Platform specific: init serial
#if defined(ARDUINO_ARCH_SAMD)
// No call to begin(), as per original code
serial->begin(baud);
#elif defined(ARDUINO_ARCH_ESP32)
serial->begin(baud, SERIAL_8N1, rx_pin, tx_pin);
#else
Expand Down