Examples: Removing MRAA reference from examples

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2017-09-28 18:23:28 -07:00
parent e8aeaff162
commit 6cc5c9691d
9 changed files with 27 additions and 13 deletions

View File

@ -65,8 +65,14 @@ int GPRS::writeDataStr(std::string data)
return m_uart.writeStr(data);
}
mraa::Result GPRS::setBaudRate(int baud)
int GPRS::setBaudRate(int baud)
{
return m_uart.setBaudRate(baud);
int ret_code = m_uart.setBaudRate(baud);
if (ret_code != MRAA_SUCCESS) {
return ret_code;
} else {
return 0;
}
//return m_uart.setBaudRate(baud);
}

View File

@ -142,7 +142,7 @@ namespace upm {
* @param baud Desired baud rate.
* @return true if successful
*/
mraa::Result setBaudRate(int baud=19200);
int setBaudRate(int baud=19200);
protected: