Remove unnecessary comments, clean up code
This commit is contained in:
@@ -7,7 +7,7 @@ extern BLEHidAdafruit blehid;
|
||||
|
||||
static uint8_t physBtnMask = 0; // bitmask of currently-pressed physical buttons
|
||||
|
||||
// ─── Setup ────────────────────────────────────────────────────────────────────
|
||||
// Setup
|
||||
void setupPhysicalButtons() {
|
||||
// Release any held physical buttons before reconfiguring
|
||||
if (physBtnMask && Bluefruit.connected()) { blehid.mouseButtonRelease(); }
|
||||
@@ -30,7 +30,7 @@ void setupPhysicalButtons() {
|
||||
}
|
||||
}
|
||||
|
||||
// ─── Poll and report ──────────────────────────────────────────────────────────
|
||||
// Poll and report
|
||||
// Called every loop iteration (before rate limiter) for immediate response.
|
||||
// Uses active-low logic: INPUT_PULLUP, button connects pin to GND.
|
||||
void processPhysicalButtons() {
|
||||
|
||||
Reference in New Issue
Block a user