fixed size from 32mb to 32kb

This commit is contained in:
2025-07-01 13:14:01 -04:00
parent f9c938757f
commit 9b9462c98c
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ impl RomChip for At28C256 {
self.data[*offset as usize]
}
fn program(new_data: Box<[u8; 33554432]>) -> Box<At28C256> {
fn program(new_data: Box<[u8; SIZE_32KB]>) -> Box<At28C256> {
println!("Writing new chip.");
let mut working = At28C256::default();
working.data = Box::new(*new_data);