Skip to content

Commit 626a442

Browse files
MabezDevivmarkov
authored andcommitted
Update esp idf config cfg
In the change to native build, it seems the config cfg dropped the `_config` postfix
1 parent 2918d36 commit 626a442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn main() -> Result<()> {
281281
experimental::test()?;
282282

283283
#[cfg(not(feature = "qemu"))]
284-
#[cfg(esp_idf_config_lwip_ipv4_napt)]
284+
#[cfg(esp_idf_lwip_ipv4_napt)]
285285
enable_napt(&mut wifi)?;
286286

287287
let mutex = Arc::new((Mutex::new(None), Condvar::new()));
@@ -1415,7 +1415,7 @@ fn ping(ip_settings: &ipv4::ClientSettings) -> Result<()> {
14151415
}
14161416

14171417
#[cfg(not(feature = "qemu"))]
1418-
#[cfg(esp_idf_config_lwip_ipv4_napt)]
1418+
#[cfg(esp_idf_lwip_ipv4_)]
14191419
fn enable_napt(wifi: &mut EspWifi) -> Result<()> {
14201420
wifi.with_router_netif_mut(|netif| netif.unwrap().enable_napt(true));
14211421

0 commit comments

Comments
 (0)