mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
Examples: Removing MRAA reference from examples
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user