Skip to content

Commit

Permalink
imxrt-flash: change rawActive variable type to bool
Browse files Browse the repository at this point in the history
JIRA: NIL-471
  • Loading branch information
gorbanchovie authored and anglov committed Jun 13, 2024
1 parent 2a49fee commit 57544f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/imxrt-flash/flashsrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ typedef struct {

uint32_t pCnt;
uint8_t fStatus;
uint8_t rawActive;
bool rawActive;

oid_t fOid;
uint32_t rawPort;
Expand Down Expand Up @@ -770,7 +770,7 @@ static int flashsrv_mountPart(flashsrv_partition_t *part)
}

if (!flashsrv_common.flash_memories[part->fID].rawActive) {
flashsrv_common.flash_memories[part->fID].rawActive = 1;
flashsrv_common.flash_memories[part->fID].rawActive = true;

mem = malloc(THREAD_STACKSZ);
if (mem == NULL) {
Expand Down Expand Up @@ -961,7 +961,7 @@ static int flashsrv_flashMemoriesInit(void)
return err;
}

memory->rawActive = 0;
memory->rawActive = false;
memory->pCnt = 0;

err = create_dev(&memory->fOid, path);
Expand Down

0 comments on commit 57544f4

Please sign in to comment.