dfrph_c_example: Fixed small copy/paste error

Removed urm37 string.  Re-aligned source.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2016-09-01 14:54:13 -07:00
parent c0bff584d5
commit 668aa320b9

View File

@ -39,7 +39,7 @@ int main()
{
signal(SIGINT, sig_handler);
//! [Interesting]
//! [Interesting]
// Instantiate a dfrph sensor on analog pin A0
dfrph_context sensor = dfrph_init(0);
@ -50,9 +50,7 @@ int main()
return(1);
}
// Every half a second, sample the URM37 and output the measured
// distance in cm.
// Every half a second, sample the sensor output
while (shouldRun)
{
float volts = 0.0, pH = 0.0;
@ -66,7 +64,7 @@ int main()
usleep(500000);
}
//! [Interesting]
//! [Interesting]
printf("Exiting\n");