@@ -3,4 +3,4 @@
common_stuff="../commhub/commhub.c ../commhub/client_utils.c ../common/common_defs.c"
rm -f diu_minder
-$target_cc $target_ccopts -o diu_minder -lcrypto diu_main.c touchscreen.c driver.c mongoose.c mkgmtime.c $common_stuff
+$target_cc $target_ccopts -o diu_minder diu_main.c touchscreen.c driver.c mongoose.c mkgmtime.c $common_stuff -lcrypto
@@ -659,10 +659,7 @@ static void process_ws_message(struct websocket_message *ws_msg) {
//
static void handle_status_input(struct mg_connection *nc, struct http_message *hm) {
char buf[_SLEN];
- char msg[][_SLEN] = {
- "fail error",
- "ok .",
- };
+ //char msg[][_SLEN] = { "fail error", "ok .", };
//DEBUG sample message
snprintf(buf, _SLEN, "ok msg=status\nroute=%s|trip=%s|stop=%s|gps=%i|tunnel=%i|date=%s|eqiupno=%s|nmsg=%s|last_token=%s|config=%s|firmware=%s|imei=%s|imsi=%s|eth0=%s",
@@ -47,4 +47,6 @@ extern int hub_fd;
void clear_diu_messages();
int check_paddle_request();
+int driver_login(int, char*);
+
#endif