Skip to content

Commit

Permalink
Merge pull request #155 from NordicSemiconductor/fix/swapping-handles…
Browse files Browse the repository at this point in the history
…-in-slider

Fix: pass the indexes to sweep in order
  • Loading branch information
kylebonnici authored Mar 22, 2024
2 parents b60caf5 + 8bd5185 commit 05e7367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/actions/testActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ export const startTests =
const phy = getPhy(state);

const singleChannelIndexed = bleChannelsValues.indexOf(singleChannel);
const channelRangeIndexed = channelRange.map(channel =>
bleChannelsValues.indexOf(channel)
);
const channelRangeIndexed = channelRange
.map(channel => bleChannelsValues.indexOf(channel))
.sort();

const testMode = paneName(getState());

Expand Down
4 changes: 2 additions & 2 deletions src/reducers/settingsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const DTM_CHANNEL_MODE = {

const initialState: SettingsState = {
channelMode: DTM_CHANNEL_MODE.single,
singleChannel: 19,
channelRange: [bleChannels.min, bleChannels.max],
singleChannel: 17,
channelRange: [bleChannels[0], bleChannels[bleChannels.length - 1]],
sweepTime: 0,
bitpattern: 0,
length: 37,
Expand Down

0 comments on commit 05e7367

Please sign in to comment.