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

@ -71,7 +71,7 @@ main(int argc, char** argv)
upm::GroveGPRS sensor(0);
// Set the baud rate, 19200 baud is the default.
if (sensor.setBaudRate(19200) != mraa::SUCCESS) {
if (sensor.setBaudRate(19200) != 0) {
cerr << "Failed to set tty baud rate" << endl;
return 1;
}