From ade86905f9a322599685992cb19c12d9a453f99e Mon Sep 17 00:00:00 2001 From: yasiupl Date: Mon, 20 Jul 2020 03:24:17 +0200 Subject: [PATCH] make lora respect time since last change --- src/director.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/director.cpp b/src/director.cpp index 60c42d1..5d3c4bf 100644 --- a/src/director.cpp +++ b/src/director.cpp @@ -47,7 +47,7 @@ void Flight::tick() int LoRaPhase = (int)sensors.getStardustFlightStatus(); if ((LoRaPhase > flight.phase) && (LoRaPhase >= 0) && (LoRaPhase <= 4)) { - flight.phase = LoRaPhase; + nextPhase(); reason = REASON_LORA; } }