eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
662 stars 411 forks source link

Modify MHZ16 to use mraa_uart_init_raw() or mraa_uart_init() #638

Closed g-vidal closed 6 years ago

g-vidal commented 6 years ago

with mraa_uart_init() function this proposal enables to use also mraa_uart_init_raw() function to choose another path for UART

Signed-off-by: g-vidal gerard.vidal@ens-lyon.fr

jtrulson commented 6 years ago

Hi,

You should implement this functionality similar to the way zfm20 does it. Rather than add a new argument to the constructor, just create a new constructor that accepts a std::string. That way you don't need this "99" stuff for the integer version of the constructor, it can be left just as it is.

g-vidal commented 6 years ago

OK I'll check zfm20 and make the changes