From f7f4ba25128706ab450d4865e48323568f8fa760 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 3 Aug 2018 14:44:56 +0200 Subject: [PATCH] Make functions static, save 270B of flash. --- Firmware/ConfigurationStore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/ConfigurationStore.cpp b/Firmware/ConfigurationStore.cpp index 264486b7..85e13e83 100644 --- a/Firmware/ConfigurationStore.cpp +++ b/Firmware/ConfigurationStore.cpp @@ -14,7 +14,7 @@ #else //DEBUG_EEPROM_WRITE #define EEPROM_WRITE_VAR(pos, value) _EEPROM_writeData(pos, (uint8_t*)&value, sizeof(value), 0) #endif //DEBUG_EEPROM_WRITE -void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size, char* name) +static void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size, char* name) { #ifdef DEBUG_EEPROM_WRITE printf_P(PSTR("EEPROM_WRITE_VAR addr=0x%04x size=0x%02hhx name=%s\n"), pos, size, name); @@ -42,7 +42,7 @@ void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size, char* name) #else //DEBUG_EEPROM_READ #define EEPROM_READ_VAR(pos, value) _EEPROM_readData(pos, (uint8_t*)&value, sizeof(value), 0) #endif //DEBUG_EEPROM_READ -void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size, char* name) +static void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size, char* name) { #ifdef DEBUG_EEPROM_READ printf_P(PSTR("EEPROM_READ_VAR addr=0x%04x size=0x%02hhx name=%s\n"), pos, size, name);