mirror of
https://github.com/thelsing/knx.git
synced 2026-02-23 13:50:35 +01:00
Tweak for Ram usage (#129)
* Add KNX_NO_DEFAULT_UART to avoid default uart assignation for ArduinoPlatforms and derivatives, with associated defines (HWSERIAL_NONE for stm32) to recover RAM from unused RX/TX buffers Remove ArduinoPlatform(HardwareSerial* knxSerial) constructor, seems not useable by KnxFacade * Restore ArduinoPlatform::ArduinoPlatform(HardwareSerial* knxSerial) constructor * revert xxxPlatform(HardwareSerial* s) constructors
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
#include <stm32_eeprom.h>
|
||||
#include "knx/bits.h"
|
||||
|
||||
Stm32Platform::Stm32Platform() : ArduinoPlatform(&Serial2)
|
||||
Stm32Platform::Stm32Platform()
|
||||
#ifndef KNX_NO_DEFAULT_UART
|
||||
: ArduinoPlatform(&Serial2)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user