Skip to content

Commit

Permalink
added Serial2 feature badge
Browse files Browse the repository at this point in the history
  • Loading branch information
mha1 committed Mar 28, 2024
1 parent 9a7d85a commit 26f42b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/html/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function generateFeatureBadges(features) {
if ((features & 12) === 12) str += `<span style="color: #696969; background-color: #fab4a8" class="badge">I2C</span>`;
else if (!!(features & 4)) str += `<span style="color: #696969; background-color: #fab4a8" class="badge">SCL</span>`;
else if (!!(features & 8)) str += `<span style="color: #696969; background-color: #fab4a8" class="badge">SDA</span>`;

// Serial2
if (!!(features & 32) || !!(features & 64))
str += `<span style="color: #696969; background-color: #36b5ff" class="badge">Serial2</span>`;

return str;
}

Expand Down Expand Up @@ -196,7 +201,7 @@ function updatePwmSettings(arPwm) {
failsafeMode.onchange();
});

// put some contraints on pinRx/Tx mode selects
// put some constraints on pinRx/Tx mode selects
if (pinRxIndex !== undefined && pinTxIndex !== undefined) {
const pinRxMode = _(`pwm_${pinRxIndex}_mode`);
const pinTxMode = _(`pwm_${pinTxIndex}_mode`);
Expand Down

0 comments on commit 26f42b7

Please sign in to comment.