Skip to content

Commit

Permalink
Bugfix: wrong index reported
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jun 1, 2024
1 parent 347b5a5 commit eb6ec2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wifi/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ where
writer.set(NetworkConfigResponse {
status: NetworkCommissioningStatus::Success,
debug_text: None,
network_index: Some(state.networks.len() as _),
network_index: Some((state.networks.len() - 1) as _),
})?;
}
Err(network) => {
Expand Down

0 comments on commit eb6ec2b

Please sign in to comment.