merge manually formatted stuff too

This commit is contained in:
MX
2024-07-16 01:01:17 +03:00
parent a9f050f367
commit 57f3bce8e3
92 changed files with 220 additions and 209 deletions

View File

@@ -36,7 +36,7 @@ static bool page_task_compare_flash(
const uint8_t* update_block,
uint16_t update_block_len) {
const size_t page_addr = furi_hal_flash_get_base() + furi_hal_flash_get_page_size() * i_page;
return (memcmp(update_block, (void*)page_addr, update_block_len) == 0);
return memcmp(update_block, (void*)page_addr, update_block_len) == 0;
}
/* Verifies a flash operation address for fitting into writable memory
@@ -44,7 +44,7 @@ static bool page_task_compare_flash(
static bool check_address_boundaries(const size_t address) {
const size_t min_allowed_address = furi_hal_flash_get_base();
const size_t max_allowed_address = (size_t)furi_hal_flash_get_free_end_address();
return ((address >= min_allowed_address) && (address < max_allowed_address));
return (address >= min_allowed_address) && (address < max_allowed_address);
}
static bool update_task_flash_program_page(