Skip to content
Snippets Groups Projects
Commit 7250745c authored by 김 유림's avatar 김 유림
Browse files

lift_server

parent a7668d1a
Branches Rasp1
No related tags found
1 merge request!2Kimjuyoung master patch
...@@ -215,7 +215,7 @@ void* microwave() { ...@@ -215,7 +215,7 @@ void* microwave() {
printf("gpio export err\n"); printf("gpio export err\n");
} }
usleep(100000); usleep(10000); //10000 -> 1000
if(-1 == GPIODirection(POUT, OUT) || -1 == GPIODirection(PIN, IN)){ if(-1 == GPIODirection(POUT, OUT) || -1 == GPIODirection(PIN, IN)){
printf("gpio direction err\n"); printf("gpio direction err\n");
...@@ -223,7 +223,7 @@ void* microwave() { ...@@ -223,7 +223,7 @@ void* microwave() {
} }
GPIOWrite(POUT, 0); GPIOWrite(POUT, 0);
usleep(10000); usleep(1000);
do{ do{
if(-1 == GPIOWrite(POUT,1)){ if(-1 == GPIOWrite(POUT,1)){
...@@ -266,7 +266,7 @@ void* microwave() { ...@@ -266,7 +266,7 @@ void* microwave() {
} }
usleep(2000000); usleep(2000000); //2000000 -> 2000
} }
while(repeat--); while(repeat--);
...@@ -318,7 +318,7 @@ void* press() ...@@ -318,7 +318,7 @@ void* press()
} }
usleep(2000000); usleep(2000000); //
} }
while(repeat--); while(repeat--);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment