mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 21:46:55 +00:00
Revert t variable type to float instead of double
For the sake of simplicity and consistency.
This commit is contained in:
@@ -119,7 +119,7 @@ bool setParameter(const char *name, const float value) {
|
||||
}
|
||||
|
||||
void syncParameters() {
|
||||
static double lastSync = 0;
|
||||
static float lastSync = 0;
|
||||
if (t - lastSync < 1) return; // sync once per second
|
||||
if (motorsActive()) return; // don't use flash while flying, it may cause a delay
|
||||
lastSync = t;
|
||||
|
||||
Reference in New Issue
Block a user