Skip to content

Commit 9a36abf

Browse files
committed
Remove hprintln calls as those brek running without a debugger
1 parent 1907b9b commit 9a36abf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main.rs

-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ mod matrix;
77

88
use cortex_m_rt::{entry, exception, ExceptionFrame}; // Stack frame for exception handling.
99
use panic_semihosting as _;
10-
use cortex_m_semihosting::hprintln;
1110

1211
use stm32f1xx_hal::{pac, prelude::*};
1312

@@ -36,8 +35,6 @@ use Row::*;
3635

3736
#[entry]
3837
fn main() -> ! {
39-
hprintln!("Starting");
40-
4138
// Init chip
4239
let _cp = cortex_m::Peripherals::take().unwrap();
4340
let dp = pac::Peripherals::take().unwrap();
@@ -50,7 +47,6 @@ fn main() -> ! {
5047
.pclk1(24.MHz())
5148
.freeze(&mut flash.acr);
5249

53-
5450
// Init GPIO
5551
let mut gpioa = dp.GPIOA.split();
5652
let clock0 = gpioa.pa0.into_push_pull_output(&mut gpioa.crl);
@@ -76,8 +72,6 @@ fn main() -> ! {
7672
matrix1.clear();
7773
matrix1.show();
7874

79-
hprintln!("*");
80-
8175
const CONTROL: u8 = '.' as u8;
8276
const ROW0: u8 = '0' as u8;
8377
const ROW1: u8 = '1' as u8;

0 commit comments

Comments
 (0)