Created
April 28, 2015 09:53
-
-
Save kuc-arc-f/3b9b1e94ae4d58487b05 to your computer and use it in GitHub Desktop.
agri-typ-d-2b-relay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char buff[]="0000"; | |
sprintf(buff, "%d", mCtOpen); | |
printf("valve-open=%s\n" , buff); | |
if(mCtOpen >= mValveGet){ | |
outRelary_1=0; | |
outRelary_2=0; | |
outRelary_3=0; | |
outRelary_4=0; | |
mResponse3=""; | |
mSTAT = mSTAT_CONECT; | |
mCtOpen=0; | |
} | |
mResponse3=""; | |
mCtOpen ++; | |
wait(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment