Skip to content

Commit f3ce8fd

Browse files
authored
Fix on begin() addr check Modulino.h
1 parent cf5e2b2 commit f3ce8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Modulino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Module : public Printable {
5050
: address(address), name((char *)name) {}
5151
virtual ~Module() {}
5252
bool begin() {
53-
if (address == 0xFF) {
53+
if (address >= 0x7F) {
5454
address = discover() / 2; // divide by 2 to match address in fw main.c
5555
}
5656
return (address < 0x7F);

0 commit comments

Comments
 (0)