static int server_sock = 0;
static int client_sock = 0;
static int stop = 0;
+static int sensord_initialized = 0;
static int stop_heartbeat = 0;
static int recv_heartbeat_count = 0;
}
void notify_sensor_daemon_start(void) {
+ sensord_initialized = 1;
if ( 0 > send_skin( client_sock, SEND_SENSOR_DAEMON_START ) ) {
ERR( "fail to send SEND_SENSOR_DAEMON_START to skin.\n" );
}
direction = ntohs( direction );
change_lcd_state( scale, direction );
- do_direction_event( direction );
+
+ if ( sensord_initialized ) {
+ do_direction_event( direction );
+ }
break;
}
case RECV_HEART_BEAT: {