mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 06:54:19 +00:00
updater: slightly smaller image (#3740)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
139660d206
commit
95658063af
2 changed files with 7 additions and 4 deletions
|
@ -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*", ".")
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue