Skip to content

Commit

Permalink
Merge pull request #16 from rp-rs/fix-init-bookkeeping
Browse files Browse the repository at this point in the history
Don't set _IS_INIT = true before initializing _ALGO_INSTANCE
  • Loading branch information
thejpster authored Dec 8, 2023
2 parents 529be40 + b70c16e commit 7bb71a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/algo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ macro_rules! algo {
if _IS_INIT {
UnInit();
}
_IS_INIT = true;
match <$type as FlashAlgo>::new(addr, clock, function) {
Ok(inst) => {
_ALGO_INSTANCE.as_mut_ptr().write(inst);
Expand Down

0 comments on commit 7bb71a0

Please sign in to comment.