Skip to content

Commit

Permalink
Fix mk_static macro (esp-rs#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ authored Jun 12, 2024
1 parent 0507669 commit 65b956d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/src/bin/esp_wifi_embassy_access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use esp_wifi::{
};

macro_rules! mk_static {
($t:path,$val:expr) => {{
($t:ty,$val:expr) => {{
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
#[deny(unused_attributes)]
let x = STATIC_CELL.uninit().write(($val));
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/esp_wifi_embassy_access_point_with_sta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const SSID: &str = env!("SSID");
const PASSWORD: &str = env!("PASSWORD");

macro_rules! mk_static {
($t:path,$val:expr) => {{
($t:ty,$val:expr) => {{
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
#[deny(unused_attributes)]
let x = STATIC_CELL.uninit().write(($val));
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/esp_wifi_embassy_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ use esp_wifi::{
};

macro_rules! mk_static {
($t:path,$val:expr) => {{
($t:ty,$val:expr) => {{
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
#[deny(unused_attributes)]
let x = STATIC_CELL.uninit().write(($val));
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/esp_wifi_embassy_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use esp_wifi::{
};

macro_rules! mk_static {
($t:path,$val:expr) => {{
($t:ty,$val:expr) => {{
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
#[deny(unused_attributes)]
let x = STATIC_CELL.uninit().write(($val));
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/esp_wifi_embassy_esp_now_duplex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use esp_wifi::{
};

macro_rules! mk_static {
($t:path,$val:expr) => {{
($t:ty,$val:expr) => {{
static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new();
#[deny(unused_attributes)]
let x = STATIC_CELL.uninit().write(($val));
Expand Down

0 comments on commit 65b956d

Please sign in to comment.