Remove unnecessary check.

This commit is contained in:
Christian Speckner 2024-08-10 23:49:31 +02:00
parent d4bfa9ac3a
commit 8e9149a233
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ Bankswitch::Type CartDetector::autodetectType(const ByteBuffer& image, size_t si
// Guess type based on size
Bankswitch::Type type = Bankswitch::Type::_AUTO;
if (size >= 128 && isProbablyELF(image, size)) {
if (isProbablyELF(image, size)) {
type =Bankswitch::Type::_ELF;
}
else if ((size % 8448) == 0 || size == 6_KB)