From 11c786c4fb11651131a644a2579890350e34a983 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 4 Aug 2015 10:28:23 -0700 Subject: [PATCH] Change set_correction_ppb argument to const. --- firmware/common/portapack_persistent_memory.cpp | 2 +- firmware/common/portapack_persistent_memory.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/common/portapack_persistent_memory.cpp b/firmware/common/portapack_persistent_memory.cpp index 43626d71..1df1746d 100644 --- a/firmware/common/portapack_persistent_memory.cpp +++ b/firmware/common/portapack_persistent_memory.cpp @@ -64,7 +64,7 @@ ppb_t correction_ppb() { return data->correction_ppb; } -void set_correction_ppb(ppb_t new_value) { +void set_correction_ppb(const ppb_t new_value) { data->correction_ppb = ppb_range.clip(new_value); } diff --git a/firmware/common/portapack_persistent_memory.hpp b/firmware/common/portapack_persistent_memory.hpp index db229bdb..03fd6e6e 100644 --- a/firmware/common/portapack_persistent_memory.hpp +++ b/firmware/common/portapack_persistent_memory.hpp @@ -30,7 +30,7 @@ namespace persistent_memory { using ppb_t = int32_t; ppb_t correction_ppb(); -void set_correction_ppb(ppb_t new_value); +void set_correction_ppb(const ppb_t new_value); } /* namespace persistent_memory */ } /* namespace portapack */