Skip to content

Commit dee101a

Browse files
authored
Merge pull request #21 from d-le0/main
Fix on begin() addr check Modulino.h
2 parents f0c3eaa + f3ce8fd commit dee101a

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
@@ -53,7 +53,7 @@ class Module : public Printable {
5353
: address(address), name((char *)name) {}
5454
virtual ~Module() {}
5555
bool begin() {
56-
if (address == 0xFF) {
56+
if (address >= 0x7F) {
5757
address = discover() / 2; // divide by 2 to match address in fw main.c
5858
}
5959
return (address < 0x7F);

0 commit comments

Comments
 (0)