Skip to content

Commit a20a30d

Browse files
add missing wait for initialized (#99)
1 parent 6925d12 commit a20a30d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/asynch/control.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,8 @@ impl<'a, const INGRESS_BUF_SIZE: usize, const URC_CAPACITY: usize>
528528
}
529529

530530
pub async fn peek_join_sta(&self, options: ConnectionOptions<'_>) -> Result<(), Error> {
531+
self.state_ch.wait_for_initialized().await;
532+
531533
(&self.at_client)
532534
.send_retry(&ExecWifiStationAction {
533535
config_id: CONFIG_ID,

0 commit comments

Comments
 (0)