diff --git a/lift_server.c b/lift_server.c index 8fc09bea973fe550444d2f76c15b2f7e85edc3c6..94e976f219a60502333b1cd97f63804e32505ca5 100644 --- a/lift_server.c +++ b/lift_server.c @@ -215,7 +215,7 @@ void* microwave() { printf("gpio export err\n"); } - usleep(100000); + usleep(10000); //10000 -> 1000 if(-1 == GPIODirection(POUT, OUT) || -1 == GPIODirection(PIN, IN)){ printf("gpio direction err\n"); @@ -223,7 +223,7 @@ void* microwave() { } GPIOWrite(POUT, 0); - usleep(10000); + usleep(1000); do{ if(-1 == GPIOWrite(POUT,1)){ @@ -266,7 +266,7 @@ void* microwave() { } - usleep(2000000); + usleep(2000000); //2000000 -> 2000 } while(repeat--); @@ -318,7 +318,7 @@ void* press() } - usleep(2000000); + usleep(2000000); // } while(repeat--); @@ -407,4 +407,4 @@ int main(int argc, char *argv[]) { pthread_join(thread3, NULL); pthread_join(thread4, NULL); -} \ No newline at end of file +}