[riot-notifications] [RIOT-OS/RIOT] drivers/sx127x: Enforces reset pin to be defined (#11913)
Juan I Carrano
notifications at github.com
Fri Jul 26 12:48:48 CEST 2019
Aside from the sensobox issue, I don't think checking for a valid config everywhere is a good design:
That code should go (i.e. it should just return without error). Otherwise, what is it guarding against? An unitialized value? Then it is highly unlikely that the value is exactly GPIO_UNDEF. If the value is GPIO_UNDEF then the user set it to that value and there must be a reason.
Following that logic, the following `#ifdefs` can go too, by allowing rx/tx_switch_pin to be undefined:
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications