WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1a9a919

Browse files
committed
fix
1 parent 7d576b9 commit 1a9a919

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

esp/gledopto/src/lib.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,9 @@ macro_rules! rmt {
321321
#[macro_export]
322322
macro_rules! clockless {
323323
($peripherals:ident, $pixel_count:expr, $led:ty) => {{
324-
$crate::clockless!(
325-
$peripherals,
326-
$pixel_count,
327-
$led,
328-
$crate::esp_hal::rmt::CHANNEL_RAM_SIZE
329-
)
324+
$crate::clockless!($peripherals, $pixel_count, $led, {
325+
$crate::hal::rmt::CHANNEL_RAM_SIZE
326+
})
330327
}};
331328
($peripherals:ident, $pixel_count:expr, $led:ty, buffered) => {{
332329
$crate::clockless!($peripherals, $pixel_count, $led, {
@@ -402,12 +399,9 @@ macro_rules! ws2812 {
402399
#[macro_export]
403400
macro_rules! clockless_async {
404401
($peripherals:ident, $pixel_count:expr, $led:ty) => {{
405-
$crate::clockless_async!(
406-
$peripherals,
407-
$pixel_count,
408-
$led,
409-
$crate::esp_hal::rmt::CHANNEL_RAM_SIZE
410-
)
402+
$crate::clockless_async!($peripherals, $pixel_count, $led, {
403+
$crate::hal::rmt::CHANNEL_RAM_SIZE
404+
})
411405
}};
412406
($peripherals:ident, $pixel_count:expr, $led:ty, buffered) => {{
413407
$crate::clockless_async!($peripherals, $pixel_count, $led, {

0 commit comments

Comments
 (0)