From 0f74f4581a9d0b304dcd24912ff4103256a9ac60 Mon Sep 17 00:00:00 2001
From: nrs1g15 <nrs1g15@soton.ac.uk>
Date: Mon, 29 Jul 2019 21:03:53 +0100
Subject: [PATCH] <= should be >=

---
 sufst-controller/sd.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sufst-controller/sd.cpp b/sufst-controller/sd.cpp
index 6928449..a3e330d 100644
--- a/sufst-controller/sd.cpp
+++ b/sufst-controller/sd.cpp
@@ -56,7 +56,7 @@ void sdProcess()
 
         sdWritesCntBeforeFlush++;
 
-        if (sdWritesCntBeforeFlush <= SD_WRITES_BEFORE_FLUSH) {
+        if (sdWritesCntBeforeFlush >= SD_WRITES_BEFORE_FLUSH) {
             file.flush();
 
             sdWritesCntBeforeFlush = 0;
-- 
GitLab