From 9fc8bc2b45317f9a86bb06502d13a70dc0a83c20 Mon Sep 17 00:00:00 2001 From: dario Date: Tue, 4 Jun 2024 22:51:45 +0200 Subject: [PATCH] Removed multiple debug prints --- include/sta/utils/logger.tpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/sta/utils/logger.tpp b/include/sta/utils/logger.tpp index cad2da6..5eebdd3 100644 --- a/include/sta/utils/logger.tpp +++ b/include/sta/utils/logger.tpp @@ -54,8 +54,6 @@ namespace sta // Bytes remaining until the page is full. uint8_t remaining = W25QXX_PAGE_SIZE - ptr_; - STA_DEBUG_PRINTF("Writing at address %d\n", address_ + ptr_); - // If the written data exceeds the remaining bytes in the page. if (ptr_ + length >= W25QXX_PAGE_SIZE) { @@ -89,11 +87,16 @@ namespace sta { address_ = start_ * W25QXX_SECTOR_SIZE; ptr_ = 0; + + flash_->sectorErase(address_); + /* for (uint32_t i = start_; i < end_; i++) { flash_->sectorErase(i * W25QXX_SECTOR_SIZE); } + + */ } template