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:
Andrei Vasiliu
2015-09-17 12:16:35 +03:00
committed by Mihai Tudor Panu
parent 701a25261f
commit ce6a095079
10 changed files with 2 additions and 15 deletions

View File

@ -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__) +