[tuxdroid-svn] r528 - daemon/trunk/libs
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-09-18 15:00:47
|
Author: jaguarondi Date: 2007-09-18 17:00:17 +0200 (Tue, 18 Sep 2007) New Revision: 528 Modified: daemon/trunk/libs/USBDaemon_status_table.c Log: * Now continuously sending light_level to the API. Modified: daemon/trunk/libs/USBDaemon_status_table.c =================================================================== --- daemon/trunk/libs/USBDaemon_status_table.c 2007-09-18 10:07:49 UTC (rev 527) +++ daemon/trunk/libs/USBDaemon_status_table.c 2007-09-18 15:00:17 UTC (rev 528) @@ -228,6 +228,7 @@ tcp_frame[5] = light_level / 256; tcp_frame[6] = light_level % 256; + tcp_server_send_raw(tcp_frame); } static void pong_event(unsigned char pong_number, unsigned char pong_received) @@ -558,8 +559,7 @@ * We substract here to represent the lightness instead of darkness */ light_level = 1128 - light_level; - if (light_level != sensors2.light_level) - sensors2_changed(light_level); + sensors2_changed(light_level); } break; |