respond to jorges reviw– fix off by one err

This commit is contained in:
Lotte Steenbrink 2020-06-22 22:54:47 +02:00
parent 35a78540c0
commit f502132139

View file

@ -197,7 +197,7 @@ fn notmain() -> Result<i32, anyhow::Error> {
Err(probe_rs_rtt::Error::ControlBlockNotFound);
const NUM_RETRIES: usize = 3; // picked at random, increase if necessary
for try_index in 0..NUM_RETRIES {
for try_index in 0..=NUM_RETRIES {
rtt_res = Rtt::attach_region(core.clone(), &sess, &ScanRegion::Exact(rtt_addr_res));
match rtt_res {
Ok(_) => {