From b05923eab6e3aa918b84700d30c77cc81375cdd9 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 6 Jan 2016 10:58:42 -0800 Subject: [PATCH] Change FIFO is_full() to make more sense. --- firmware/common/fifo.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/common/fifo.hpp b/firmware/common/fifo.hpp index f7a490c7..0834d20f 100644 --- a/firmware/common/fifo.hpp +++ b/firmware/common/fifo.hpp @@ -59,7 +59,7 @@ public: } bool is_full() const { - return len() > mask(); + return unused() == 0; } /* bool in(const T& val) {