We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36bb2e9 commit 32c7893Copy full SHA for 32c7893
src/Modulino.h
@@ -342,8 +342,8 @@ class ModulinoKnob : public Module {
342
}
343
344
_pressed = (buf[2] != 0);
345
- int16_t ret = buf[0] | (buf[1] << 8);
346
- return ret;
+ int16_t _last_pox = buf[0] | (buf[1] << 8);
+ return _last_pox;
347
348
void set(int16_t value) {
349
if (_bug_on_set) {
@@ -366,8 +366,10 @@ class ModulinoKnob : public Module {
366
return 0xFF;
367
368
private:
369
+ int16_t _last_pox = 0;
370
bool _pressed = false;
371
bool _bug_on_set = false;
372
+
373
protected:
374
uint8_t match[2] = { 0x74, 0x76 };
375
};
0 commit comments