Bug in libxdot-mbed5
- This topic has 1 reply, 1 voice, and was last updated 6 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
While writing code for LoRa event handling on the xDot I noticed that the mDot::setEvents() function takes an mDotEvent pointer instead of a pointer to the base class, MacEvents. In order to create my own event handler, I am thus forced to inherit from mDotEvent, which comes with hundreds of bytes of member variables that I don’t want. If mDot::setEvents took a MacEvents pointer instead, this would not be a problem. Can this be fixed?
This issue is still present in the latest release candidate in libxXot-dev-mbed5.
It would also be nice if the send() and recv() functions worked on arrays instead of vectors. Vectors have to be allocated on the heap, which I try to avoid in embedded programming.