diff --git a/examples/c++/grovegprs.cxx b/examples/c++/grovegprs.cxx index 8652131a..bc0e3d9f 100644 --- a/examples/c++/grovegprs.cxx +++ b/examples/c++/grovegprs.cxx @@ -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;