grovegprs: updated to C++ mraa result in example

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2015-09-21 13:03:17 -07:00
parent 7ce8dc3434
commit a0af1c01bd

View File

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