fixed bugs and update readme

This commit is contained in:
2023-12-08 11:35:56 +03:00
parent 33e4eb9e6a
commit e7c206102d
6 changed files with 38 additions and 15 deletions

View File

@@ -39,7 +39,7 @@ static const char *regstates[4] = {
static const char *opcl[2] = {"closed", "opened"};
shutter_state shutterstate = SHUTTER_ERROR;
shutter_state shutterstate = SHUTTER_RELAX;
static shutter_state nextstate = SHUTTER_RELAX;
static uint32_t Tstart = 0, Texp = 0, Topened = 0;
@@ -117,7 +117,7 @@ void process_shutter(){
}
break;
case SHUTTER_WAIT: // wait for mechanical work done
if(Tms - Tstart > the_conf.waitingtime){
if(Tms - Tstart >= the_conf.waitingtime){
SHTRHIZ();
shutterstate = nextstate;
int h = CHKHALL();