mirror of
https://github.com/Derisis13/Shutter.git
synced 2025-12-06 19:32:48 +01:00
Version 1.4.5
Bugfix: now function press_button doesn't leak memory
This commit is contained in:
1
moving.c
1
moving.c
@@ -50,6 +50,7 @@ void press_button (buttons b)
|
|||||||
fprintf (gpio, "1");
|
fprintf (gpio, "1");
|
||||||
fclose (gpio);
|
fclose (gpio);
|
||||||
usleep (200000);
|
usleep (200000);
|
||||||
|
free (fname);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lower (shutter *r)
|
void lower (shutter *r)
|
||||||
|
|||||||
2
moving.h
2
moving.h
@@ -17,4 +17,4 @@ void reset ();
|
|||||||
|
|
||||||
//lowers the shutter to the percentage level described in the shutter structure
|
//lowers the shutter to the percentage level described in the shutter structure
|
||||||
void lower (shutter *r);
|
void lower (shutter *r);
|
||||||
#endif //_MOZGATAS_H_
|
#endif _MOZGATAS_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user