Revert t variable type to float instead of double

For the sake of simplicity and consistency.
This commit is contained in:
Oleg Kalachev
2025-10-18 12:28:01 +03:00
parent ebac78dc0f
commit e50a9d5fea
11 changed files with 16 additions and 19 deletions

View File

@@ -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;