Version 1.4.5

Bugfix: now function press_button doesn't leak memory
This commit is contained in:
2021-08-31 20:44:10 +02:00
parent 9109cc8077
commit 973fde4697
2 changed files with 2 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ void press_button (buttons b)
fprintf (gpio, "1");
fclose (gpio);
usleep (200000);
free (fname);
}
void lower (shutter *r)

View File

@@ -17,4 +17,4 @@ void reset ();
//lowers the shutter to the percentage level described in the shutter structure
void lower (shutter *r);
#endif //_MOZGATAS_H_
#endif _MOZGATAS_H_