Skip to content

Commit

Permalink
[bootloader] Fix E16 reading
Browse files Browse the repository at this point in the history
E16 uses fewer keys in its header, which causes E16 to not be read in the bootloader menu. We fix this by only checking the header magic in userlandHeader.
  • Loading branch information
Lisra-git committed Nov 27, 2022
1 parent a21f814 commit 7593b3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootloader/userland_header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ const char * UserlandHeader::version() const {
return m_expectedEpsilonVersion;
}

//verifying only first Magic allow to display version such as E16 with older UserlandHeader Layout
const bool UserlandHeader::isValid() const {
return m_header == Magic && m_footer == Magic;
return m_header == Magic;
}

const bool UserlandHeader::isOmega() const {
Expand Down

0 comments on commit 7593b3b

Please sign in to comment.