mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 18:01:18 +03:00
misc: Removed mraa_init and mraa::init
This change is due to commit 35760929dbb912fc3dfc738fee67c4f0dd63d55f from MRAA. Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
701a25261f
commit
ce6a095079
@ -45,8 +45,6 @@ HCSR04::HCSR04 (uint8_t triggerPin, uint8_t echoPin, void (*fptr)(void *)) {
|
||||
mraa_result_t error = MRAA_SUCCESS;
|
||||
m_name = "HCSR04";
|
||||
|
||||
mraa_init();
|
||||
|
||||
m_triggerPinCtx = mraa_gpio_init (triggerPin);
|
||||
if (m_triggerPinCtx == NULL) {
|
||||
throw std::invalid_argument(std::string(__FUNCTION__) +
|
||||
|
Reference in New Issue
Block a user