X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=server%2Fsensor.c;h=bfa8b66cae1ec2e6727faf46719d91137d14a004;hb=2ca5f448220a19baed8d3b6e1fa8b385c19c8871;hp=8e4773f1bd5c184b9233edb3d9d6719877575750;hpb=a728759ad3fe0ba1fee614f7ad341d0d072627e3;p=matches%2FMCTX3420.git diff --git a/server/sensor.c b/server/sensor.c index 8e4773f..bfa8b66 100644 --- a/server/sensor.c +++ b/server/sensor.c @@ -225,6 +225,7 @@ bool Sensor_Read(Sensor * s, DataPoint * d) break; case DIGITAL_REALTEST: { + d->value = 0; //d->value must be something... valgrind... // Can pass pin as argument, just using 20 as an example here // Although since pins will be fixed, can just define it here if we need to //d->value = pinRead(20); //Pin 20 on the Beaglebone