update interfaces
authorMart Lubbers <mart@martlubbers.net>
Tue, 4 Apr 2017 14:41:48 +0000 (16:41 +0200)
committerMart Lubbers <mart@martlubbers.net>
Tue, 4 Apr 2017 14:41:48 +0000 (16:41 +0200)
client/linux/client
client/linux/interface.c
client/stm32/interface.c

index b269fc2..a4f30ed 100755 (executable)
Binary files a/client/linux/client and b/client/linux/client differ
index 36d2a86..520873f 100644 (file)
@@ -33,7 +33,7 @@ void usage(FILE *o, char *arg0){
                "-p PORT  Custom port number, default: 8123\n" , arg0);
 }
 
-long getmillis(void) {
+unsigned long getmillis(void) {
        if (gettimeofday(&tv1, NULL) == -1)
                pdie("gettimeofday");
        return tv1.tv_sec*1000 + tv1.tv_usec/1000;
@@ -92,7 +92,7 @@ uint8_t read_apin(uint8_t i)
        (void) i;
 }
 
-void msdelay(long ms)
+void msdelay(unsigned long ms)
 {
        usleep(ms*1000);
 }
index 374a583..2d5c679 100644 (file)
@@ -77,11 +77,11 @@ void led_off(uint8_t i)
        }
 }
 
-long getmillis(void){
+unsigned long getmillis(void){
        return ST2MS(chVTGetSystemTime());
 }
 
-void msdelay(long ms)
+void msdelay(unsigned long ms)
 {
        chThdSleepMilliseconds(ms);
 }