minor cleanup
This commit is contained in:
parent
3c3f3a532d
commit
f51e3a4f1e
1 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: sky-websense.c,v 1.2 2010/06/08 12:34:43 nifi Exp $
|
* $Id: sky-websense.c,v 1.3 2010/06/08 13:27:06 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -104,7 +104,7 @@ PT_THREAD(send_values(struct httpd_state *s))
|
||||||
/* Default page: show latest sensor values as text (does not
|
/* Default page: show latest sensor values as text (does not
|
||||||
require Internet connection to Google for charts). */
|
require Internet connection to Google for charts). */
|
||||||
blen = 0;
|
blen = 0;
|
||||||
ADD("<h1>Sensors:</h1>\n"
|
ADD("<h1>Current readings</h1>\n"
|
||||||
"Light: %u<br>"
|
"Light: %u<br>"
|
||||||
"Temperature: %u° C",
|
"Temperature: %u° C",
|
||||||
get_light(), get_temp());
|
get_light(), get_temp());
|
||||||
|
@ -121,11 +121,11 @@ PT_THREAD(send_values(struct httpd_state *s))
|
||||||
SEND_STRING(&s->sout, "Turned on leds!");
|
SEND_STRING(&s->sout, "Turned on leds!");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if(s->filename[1] == 'l' || s->filename[1] != 't') {
|
if(s->filename[1] != 't') {
|
||||||
generate_chart("Light", "Light", 0, 500, light1);
|
generate_chart("Light", "Light", 0, 500, light1);
|
||||||
SEND_STRING(&s->sout, buf);
|
SEND_STRING(&s->sout, buf);
|
||||||
}
|
}
|
||||||
if(s->filename[1] == 't' || s->filename[1] != 'l') {
|
if(s->filename[1] != 'l') {
|
||||||
generate_chart("Temperature", "Celsius", 15, 50, temperature);
|
generate_chart("Temperature", "Celsius", 15, 50, temperature);
|
||||||
SEND_STRING(&s->sout, buf);
|
SEND_STRING(&s->sout, buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue