diff --git a/beneater/src/bin/beneater.rs b/beneater/src/bin/beneater.rs index 5bfa9e3..09b86c4 100644 --- a/beneater/src/bin/beneater.rs +++ b/beneater/src/bin/beneater.rs @@ -4,8 +4,6 @@ use macroquad::prelude::*; use macroquad::telemetry::frame; use beneater::parts::ben_eater_pc::BenEaterPC; use beneater::parts::display_matrix::DisplayMatrix; - - #[macroquad::main("Ben Eaters PC")] async fn main() { println!("Taxation is Theft"); diff --git a/core/src/constants/constants_system.rs b/core/src/constants/constants_system.rs index a234fda..e31d0d4 100644 --- a/core/src/constants/constants_system.rs +++ b/core/src/constants/constants_system.rs @@ -1,4 +1,4 @@ -pub const SIZE_1KB: usize = 1024 * 1024; +pub const SIZE_1KB: usize = 1024; pub const SIZE_32KB: usize = SIZE_1KB * 32; pub const SIZE_64KB: usize = SIZE_1KB * 64; diff --git a/core/src/periph/at28c256.rs b/core/src/periph/at28c256.rs index e84570e..927a7d3 100644 --- a/core/src/periph/at28c256.rs +++ b/core/src/periph/at28c256.rs @@ -28,7 +28,7 @@ impl RomChip for At28C256 { self.data[*offset as usize] } - fn program(new_data: Box<[u8; 33554432]>) -> Box { + fn program(new_data: Box<[u8; SIZE_32KB]>) -> Box { println!("Writing new chip."); let mut working = At28C256::default(); working.data = Box::new(*new_data);