Skip to content

Commit

Permalink
Merge pull request #21 from d-le0/main
Browse files Browse the repository at this point in the history
Fix on begin() addr check Modulino.h
  • Loading branch information
facchinm authored Feb 6, 2025
2 parents f0c3eaa + f3ce8fd commit dee101a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modulino.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Module : public Printable {
: address(address), name((char *)name) {}
virtual ~Module() {}
bool begin() {
if (address == 0xFF) {
if (address >= 0x7F) {
address = discover() / 2; // divide by 2 to match address in fw main.c
}
return (address < 0x7F);
Expand Down

0 comments on commit dee101a

Please sign in to comment.