mirror of
https://github.com/eclipse/upm.git
synced 2025-07-27 06:01:16 +03:00
ADXL335: Add string based constructor for Accelerometer
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
50961c6020
commit
d00dc3e332
@ -23,9 +23,10 @@
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <typeinfo>
|
||||
|
||||
#include "upm_string_parser.hpp"
|
||||
#include "ad8232.hpp"
|
||||
#include <typeinfo>
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
@ -63,7 +64,7 @@ AD8232::AD8232(std::string initStr)
|
||||
": mraa_gpio_init() failed, invalid pin?");
|
||||
}
|
||||
|
||||
if(!mraaIo->gpios.empty())
|
||||
if(!mraaIo->aios.empty())
|
||||
{
|
||||
m_aioOUT = &mraaIo->aios[0];
|
||||
}
|
||||
|
Reference in New Issue
Block a user