From 28cf5160d8dd806c46094424c0fc20cae23a46a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 17 Aug 2021 08:46:16 +0200 Subject: [PATCH] main: minor, improve code --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 83a6c93..aab1f09 100644 --- a/main.c +++ b/main.c @@ -33,12 +33,12 @@ bool (*ram_eeprom_blockprog)(const uint8_t* data, uint16_t length); volatile uint8_t RAM_SEG_LEN; // get the size of the RAM segment -inline void get_ram_section_length() { +static inline void get_ram_section_length() { __asm__("mov _RAM_SEG_LEN, #l_RAM_SEG"); } // copy functions to RAM -bool ram_cpy() { +static bool ram_cpy() { get_ram_section_length(); if (RAM_SEG_LEN > ARRAY_LENGTH(f_ram)) { return false;