File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1454,12 +1454,10 @@ pub(crate) fn esp_wifi_send_data(interface: wifi_interface_t, data: &mut [u8]) {
14541454
14551455 state:: locked ( || {
14561456 // even checking for !Uninitialized would be enough to not crash
1457- if interface == wifi_interface_t_WIFI_IF_STA
1458- && !matches ! ( station_state( ) , WifiStationState :: Connected )
1459- {
1460- return ;
1461- } else if interface == wifi_interface_t_WIFI_IF_AP
1462- && !matches ! ( access_point_state( ) , WifiAccessPointState :: Started )
1457+ if ( interface == wifi_interface_t_WIFI_IF_STA
1458+ && !matches ! ( station_state( ) , WifiStationState :: Connected ) )
1459+ || ( interface == wifi_interface_t_WIFI_IF_AP
1460+ && !matches ! ( access_point_state( ) , WifiAccessPointState :: Started ) )
14631461 {
14641462 return ;
14651463 }
You can’t perform that action at this time.
0 commit comments