From 5236a858d0502e3261849a27a0d7cf12b73e1dfc Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 5 Nov 2015 09:06:41 -0800 Subject: [PATCH] Change Field.read to const. --- firmware/common/ais_baseband.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/common/ais_baseband.hpp b/firmware/common/ais_baseband.hpp index 42711a8d..94590089 100644 --- a/firmware/common/ais_baseband.hpp +++ b/firmware/common/ais_baseband.hpp @@ -41,7 +41,7 @@ public: { } - uint32_t read(const size_t start_bit, const size_t length) { + uint32_t read(const size_t start_bit, const size_t length) const { uint32_t value = 0; for(size_t i=start_bit; i<(start_bit + length); i++) { value = (value << 1) | data[bit_remap(i)];