Remove unneeded assert.
[bertos.git] / bertos / cpu / avr / drv / flash_avr.c
index 50e2a6cf6c494fd47377369f0236ab0e546f7862..231e01ebb941d77f19e0197b64eaa09d09bc6822 100644 (file)
@@ -71,9 +71,6 @@ struct FlashHardware;
 
 static size_t avr_flash_readDirect(struct KBlock *blk, block_idx_t idx, void *buf, size_t offset, size_t size)
 {
-       ASSERT(offset == 0);
-       ASSERT(size == blk->blk_size);
-
        memcpy_P(buf, (const void *)(uint16_t)(idx * blk->blk_size), size);
        return blk->blk_size;
 }