Skip to content

Commit

Permalink
Clean up examples a bit (esp-rs#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored and bjoernQ committed May 24, 2024
1 parent a053d9f commit a388b84
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 0 additions & 2 deletions esp-wifi/examples/access_point.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![no_std]
#![no_main]
#![feature(c_variadic)]
#![feature(const_mut_refs)]

#[path = "../../examples-util/util.rs"]
mod examples_util;
Expand Down
3 changes: 0 additions & 3 deletions esp-wifi/examples/embassy_access_point.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#![no_std]
#![no_main]
#![feature(c_variadic)]
#![feature(const_mut_refs)]
#![feature(type_alias_impl_trait)]

use embassy_net::tcp::TcpSocket;
use embassy_net::ConfigV4;
use embassy_net::{
Config, IpListenEndpoint, Ipv4Address, Ipv4Cidr, Stack, StackResources, StaticConfigV4,
};
Expand Down
9 changes: 1 addition & 8 deletions esp-wifi/examples/embassy_ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ use esp_wifi::{ble::controller::asynch::BleConnector, initialize, EspWifiInitFor
#[path = "../../examples-util/util.rs"]
mod examples_util;
use examples_util::hal;
use hal::{
clock::ClockControl,
embassy::{self},
peripherals::*,
prelude::*,
timer::TimerGroup,
Rng, IO,
};
use hal::{clock::ClockControl, embassy, peripherals::*, prelude::*, timer::TimerGroup, Rng, IO};

#[main]
async fn main(_spawner: Spawner) -> ! {
Expand Down

0 comments on commit a388b84

Please sign in to comment.