main: minor, improve code

This commit is contained in:
King Kévin 2021-08-17 08:46:16 +02:00
parent a8f80dc3fd
commit 28cf5160d8
1 changed files with 2 additions and 2 deletions

4
main.c
View File

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