Change set_correction_ppb argument to const.

This commit is contained in:
Jared Boone 2015-08-04 10:28:23 -07:00
parent 45d26abf10
commit 11c786c4fb
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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 */