mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
Fix #191 by initializing the platform pointer in all KnxFacade constructors
This commit is contained in:
parent
b0153de97f
commit
adc05cfaf7
@ -18,7 +18,7 @@
|
|||||||
// the ESP32's secondary UART and late-bind the ISR function in setup().
|
// the ESP32's secondary UART and late-bind the ISR function in setup().
|
||||||
Esp32Platform knxPlatform(&Serial2);
|
Esp32Platform knxPlatform(&Serial2);
|
||||||
Bau07B0 knxBau(knxPlatform);
|
Bau07B0 knxBau(knxPlatform);
|
||||||
KnxFacade<Esp32Platform, Bau07B0> knx(knxBau);
|
KnxFacade<Esp32Platform, Bau07B0> knx(&knxPlatform, knxBau);
|
||||||
|
|
||||||
ICACHE_RAM_ATTR void myButtonPressed()
|
ICACHE_RAM_ATTR void myButtonPressed()
|
||||||
{
|
{
|
||||||
|
@ -71,7 +71,7 @@ template <class P, class B> class KnxFacade : private SaveRestore
|
|||||||
_bau.addSaveRestore(this);
|
_bau.addSaveRestore(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
KnxFacade(B& bau) : _bau(bau)
|
KnxFacade(P* platformPtr, B& bau) : _platformPtr(platformPtr), _bau(bau)
|
||||||
{
|
{
|
||||||
manufacturerId(0xfa);
|
manufacturerId(0xfa);
|
||||||
bauNumber(platform().uniqueSerialNumber());
|
bauNumber(platform().uniqueSerialNumber());
|
||||||
|
Loading…
Reference in New Issue
Block a user