diff --git a/src/tests/radio/sx1278/fsk/test-sx1278-mavlink.cpp b/src/tests/radio/sx1278/fsk/test-sx1278-mavlink.cpp
index 34a0061cd73fd5245b4674441145c4746e69c242..2ea4330776a25051354534ef0c85aa25fe5b15ef 100644
--- a/src/tests/radio/sx1278/fsk/test-sx1278-mavlink.cpp
+++ b/src/tests/radio/sx1278/fsk/test-sx1278-mavlink.cpp
@@ -182,7 +182,7 @@ void flightTmLoop()
             Lock<FastMutex> l(mutex);
             while (!pending_acks.isEmpty())
             {
-                auto ack = pending_acks.pop();
+                PendingAck ack = pending_acks.pop();
 
                 // Prepare ack message
                 mavlink_message_t msg;