Skip to content

Commit 7bb71a0

Browse files
authored
Merge pull request #16 from rp-rs/fix-init-bookkeeping
Don't set _IS_INIT = true before initializing _ALGO_INSTANCE
2 parents 529be40 + b70c16e commit 7bb71a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/algo.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ macro_rules! algo {
4444
if _IS_INIT {
4545
UnInit();
4646
}
47-
_IS_INIT = true;
4847
match <$type as FlashAlgo>::new(addr, clock, function) {
4948
Ok(inst) => {
5049
_ALGO_INSTANCE.as_mut_ptr().write(inst);

0 commit comments

Comments
 (0)