Skip to content

Commit

Permalink
Missing initialisation of "_initialized" to "false" leads to russian …
Browse files Browse the repository at this point in the history
…roulette whether or not "_control.begin()" is called.
  • Loading branch information
aentinger committed May 15, 2024
1 parent b6d9dff commit e95199c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/PF1550.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
******************************************************************************/

PF1550::PF1550(PF1550_IO & io)
: _control(io),
_debug(NULL)
: _control(io)
, _initialized(false)
, _debug(NULL)
{

}
Expand Down
2 changes: 1 addition & 1 deletion src/PF1550.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class PF1550

private:
PF1550_Control _control;
volatile bool _initialized;
bool _initialized;
Stream* _debug;
};

Expand Down

0 comments on commit e95199c

Please sign in to comment.