Skip to content

Commit

Permalink
Using separate index
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Nov 15, 2023
1 parent b651e0c commit f174e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ gps.initialize = async function (callback) {
// do not include NMEA for firmware 4.5
let protocolIndex = semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46) ? 1 : 0;

for (protocolIndex; protocolIndex < gpsProtocols.length; protocolIndex++) {
gpsProtocolElement.append(`<option value="${protocolIndex}">${gpsProtocols[protocolIndex]}</option>`);
for (let optionIndex = 0; protocolIndex < gpsProtocols.length; optionIndex++, protocolIndex++) {
gpsProtocolElement.append(`<option value="${optionIndex}">${gpsProtocols[protocolIndex]}</option>`);
}

gpsProtocolElement.change(function () {
Expand Down

0 comments on commit f174e9a

Please sign in to comment.