mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
grovegprs: updated to C++ mraa result in example
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
7ce8dc3434
commit
a0af1c01bd
@ -75,7 +75,7 @@ int main(int argc, char **argv)
|
|||||||
upm::GroveGPRS* sensor = new upm::GroveGPRS(0);
|
upm::GroveGPRS* sensor = new upm::GroveGPRS(0);
|
||||||
|
|
||||||
// Set the baud rate, 19200 baud is the default.
|
// 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;
|
cerr << "Failed to set tty baud rate" << endl;
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user