clementinecomputing 6 lat temu
rodzic
commit
9ae0d66050
3 zmienionych plików z 4 dodań i 5 usunięć
  1. 1 1
      busunit/DIUv2/buildit.sh
  2. 1 4
      busunit/DIUv2/diu_main.c
  3. 2 0
      busunit/DIUv2/driver.h

+ 1 - 1
busunit/DIUv2/buildit.sh

@@ -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

+ 1 - 4
busunit/DIUv2/diu_main.c

@@ -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",

+ 2 - 0
busunit/DIUv2/driver.h

@@ -47,4 +47,6 @@ extern int hub_fd;
 void clear_diu_messages();
 int check_paddle_request();
 
+int driver_login(int, char*);
+
 #endif