File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class Module : public Printable {
108
108
public:
109
109
Module (uint8_t address = 0xFF , const char * name = " " , ModulinoHubPort* hubPort = nullptr )
110
110
: address(address), name((char *)name), hubPort(hubPort) {}
111
- virtual ~Module () {}
111
+ virtual ~Module () {}
112
112
bool begin () {
113
113
if (address >= 0x7F ) {
114
114
address = discover () / 2 ; // divide by 2 to match address in fw main.c
@@ -267,7 +267,7 @@ class ModulinoJoystick : public Module {
267
267
auto x = buf[0 ];
268
268
auto y = buf[1 ];
269
269
map_value (x, y);
270
- auto ret = res && (x != last_status[0 ] || buf[ 1 ] != y || buf[2 ] != last_status[2 ]);
270
+ auto ret = res && (x != last_status[0 ] || y != last_status[ 1 ] || buf[2 ] != last_status[2 ]);
271
271
if (!ret) {
272
272
return false ;
273
273
}
@@ -841,7 +841,7 @@ class ModulinoDistance : public Module {
841
841
if (api == nullptr ) {
842
842
return false ;
843
843
}
844
-
844
+
845
845
uint8_t NewDataReady = 0 ;
846
846
api->checkForDataReady (&NewDataReady);
847
847
if (NewDataReady) {
You can’t perform that action at this time.
0 commit comments