Permalink
Browse files

add modulo 4 per i litri

  • Loading branch information...
1 parent bcc93ff commit c6e806e2c0bf5d27e34a1bcb34f5baf0eb75b504 @fanakin committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/gsmRemote/AntonelloApp.c
@@ -247,7 +247,7 @@ PROCESS_THREAD(antonello_process, ev, data)
struct sensors_sensor* sensor = (struct sensors_sensor*)data;
if (!strcmp(sensor->type,HALLEFFECT_SENSOR)) {
antIdleStructure.counter = sensor->value(0);
- if (!(antIdleStructure.counter)) {
+ if (!(antIdleStructure.counter % 4)) {
antIdleStructure.TotalLiters++;
printf("Litri:%d\r\n",antIdleStructure.TotalLiters);
}

0 comments on commit c6e806e

Please sign in to comment.