projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbad3bc
)
sample fix
author
Bernhard Tittelbach
<xro@realraum.at>
Sat, 24 Apr 2010 00:05:36 +0000
(
00:05
+0000)
committer
Bernhard Tittelbach
<xro@realraum.at>
Sat, 24 Apr 2010 00:05:36 +0000
(
00:05
+0000)
serial_console/sample_sensors.c
patch
|
blob
|
history
diff --git
a/serial_console/sample_sensors.c
b/serial_console/sample_sensors.c
index
7bfc7da
..
03b241d
100644
(file)
--- a/
serial_console/sample_sensors.c
+++ b/
serial_console/sample_sensors.c
@@
-34,12
+34,12
@@
unsigned int collect_data(char *buffer, unsigned int size)
}
else if (size > 8 && strncmp("photo0:", buffer, 7) == 0)
{
- if (asprintf(&cmd, "rrdtool update %s -t light N:%s", rrd_light_, buffer + 7))
+ if (asprintf(&cmd, "rrdtool update %s -t light N:%s", rrd_light_, buffer + 8))
{
/*printf("%s\n",cmd);*/
system(cmd);
free(cmd);
- }
+ }
}
return 0;
}