Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 8ea8e83

Browse files
author
Offir Kochalsky
committed
fix build problem due to removed macro
1 parent 98e6694 commit 8ea8e83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

QSPIFBlockDevice.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
// Erase Types Per Region BitMask
6868
#define ERASE_BITMASK_TYPE4 0x08
6969
#define ERASE_BITMASK_TYPE1 0x01
70+
#define ERASE_BITMASK_NONE 0x00
7071
#define ERASE_BITMASK_ALL 0x0F
7172

7273
#define IS_MEM_READY_MAX_RETRIES 1000
@@ -318,15 +319,15 @@ int QSPIFBlockDevice::erase(bd_addr_t addr, bd_size_t in_size)
318319
int type = 0;
319320
uint32_t chunk = 4096;
320321
unsigned int cur_erase_inst = _erase_instruction;
321-
int size = (int)inSize;
322+
int size = (int)in_size;
322323
bool erase_failed = false;
323324
int status = QSPIF_BD_ERROR_OK;
324325
// Find region of erased address
325326
int region = _utils_find_addr_region(addr);
326327
// Erase Types of selected region
327328
uint8_t bitfield = _region_erase_types_bitfield[region];
328329

329-
tr_debug("DEBUG: erase - addr: %llu, inSize: %llu", addr, in_size);
330+
tr_debug("DEBUG: erase - addr: %llu, in_size: %llu", addr, in_size);
330331

331332
// For each iteration erase the largest section supported by current region
332333
while (size > 0) {

0 commit comments

Comments
 (0)