Skip to content

Commit

Permalink
Fix on begin() addr check Modulino.h
Browse files Browse the repository at this point in the history
  • Loading branch information
d-le0 authored Feb 6, 2025
1 parent cf5e2b2 commit f3ce8fd
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 @@ -50,7 +50,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 f3ce8fd

Please sign in to comment.