mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-24 14:58:09 +00:00
respond to jorges reviw– fix off by one err
This commit is contained in:
parent
35a78540c0
commit
f502132139
1 changed files with 1 additions and 1 deletions
|
@ -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(_) => {
|
||||
|
|
Loading…
Reference in a new issue