File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
- Support for STM32F091 - @jessebraham
13
13
- Support for HSE as a system clocksource (#25 - breaking change) - @zklapow
14
14
15
+ ### Fixed
16
+
17
+ - Fixed panic in delay overflow handling for debug builds - @david-sawatzke
18
+
15
19
## [ v0.11.1] - 2019-01-05
16
20
17
21
### Added
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ impl DelayUs<u32> for Delay {
99
99
100
100
let start_count = SYST :: get_current ( ) ;
101
101
total_rvr -= current_rvr;
102
- while ( ( start_count - SYST :: get_current ( ) ) % MAX_SYSTICK ) < current_rvr { }
102
+ while ( start_count. wrapping_sub ( SYST :: get_current ( ) ) % MAX_SYSTICK ) < current_rvr { }
103
103
}
104
104
}
105
105
}
You can’t perform that action at this time.
0 commit comments