Skip to content

Commit

Permalink
sfdpInternal: Fixed some data conversion warnings in `volatileStatusW…
Browse files Browse the repository at this point in the history
…riteEnable()`
  • Loading branch information
dragonmux committed Jan 15, 2024
1 parent 112aff7 commit f8f2289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/sfdpInternal.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ namespace bmpflash::sfdp
return std::nullopt;
// Otherwise check if the device requires 0x06 as write enable
if (data & 0x10U)
return 0x06U;
return static_cast<uint8_t>(0x06U);
// If not, then it's 0x50 as write enable
return 0x50U;
return static_cast<uint8_t>(0x50U);
}

[[nodiscard]] bool supports4KiBErase() const noexcept
Expand Down

0 comments on commit f8f2289

Please sign in to comment.