updater: slightly smaller image (#3740)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger 2024-07-02 15:17:05 +03:00 committed by GitHub
parent 139660d206
commit 95658063af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -107,6 +107,9 @@ env.Append(
libenv = env.Clone(FW_LIB_NAME="print")
libenv.ApplyLibFlags()
if env["RAM_EXEC"]:
libenv.AppendUnique(CPPDEFINES=["PRINTF_DISABLE_SUPPORT_FLOAT"])
libenv.Append(CCFLAGS=["-Wno-double-promotion"])
sources = libenv.GlobRecursive("*.c*", ".")

View file

@ -319,9 +319,9 @@ void furi_hal_flash_erase(uint8_t page) {
op_stat = DWT->CYCCNT - op_stat;
FURI_LOG_T(
TAG,
"erase took %lu clocks or %fus",
"erase took %lu clocks or %luus",
op_stat,
(double)((float)op_stat / (float)furi_hal_cortex_instructions_per_microsecond()));
op_stat / furi_hal_cortex_instructions_per_microsecond());
}
static inline void furi_hal_flash_write_dword_internal_nowait(size_t address, uint64_t* data) {
@ -448,9 +448,9 @@ void furi_hal_flash_program_page(const uint8_t page, const uint8_t* data, uint16
op_stat = DWT->CYCCNT - op_stat;
FURI_LOG_T(
TAG,
"program_page took %lu clocks or %fus",
"program_page took %lu clocks or %luus",
op_stat,
(double)((float)op_stat / (float)furi_hal_cortex_instructions_per_microsecond()));
op_stat / furi_hal_cortex_instructions_per_microsecond());
}
int16_t furi_hal_flash_get_page_number(size_t address) {