theCarlG/NexaCtrl

NexaCtrl(tx_pin, rx_pin, led_pin) seems to be not calling NexaCtrl(tx_pin, rx_pin)

Closed this issue · 0 comments

https://github.com/calle-gunnarsson/NexaCtrl/blob/177a7bfdb5a06219592763fb15b09513d9f2c11b/NexaCtrl.cpp#L44

It seems this line does not call the function, but is in stead creating a new class instance.

When supplying the led_pin parameter, tx_pin does not get set.
low_pulse_array does also not get initialized, resulting in stack dump and watchdog reset on the esp8266. I do not know what this does on an AVR, but probably nothing good.