mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-30 20:34:45 +01:00
don't allow bank changes for 512mb flash
This commit is contained in:
parent
0a9b5afcb0
commit
d4068da188
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class Flash < Storage
|
|||
@state ^= State::PREPARE_ERASE
|
||||
end
|
||||
when Command::PREPARE_WRITE.value then @state |= State::PREPARE_WRITE
|
||||
when Command::SET_BANK.value then @state |= State::SET_BANK
|
||||
when Command::SET_BANK.value then @state |= State::SET_BANK if @type == Type::FLASH1M
|
||||
else puts "Unsupported flash command #{hex_str value}"
|
||||
end
|
||||
elsif @state.includes?(State::PREPARE_ERASE) && index & 0x0FFF == 0 && value == Command::ERASE_CHUNK.value
|
||||
|
|
Loading…
Add table
Reference in a new issue