esp-rs / esp32-hal

A hardware abstraction layer for the esp32 written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspected typo / copy'n'paste bug in 'ram' macro

enrikb opened this issue · comments

if rtc_slow && rtc_fast {
Span::call_site()
.error("Only one of rtc_slow and rtc_fast is allowed")
.emit();
}
if rtc_slow && rtc_fast {
Span::call_site()
.error("Only one of uninitialized and zeroed")
.emit();
}

I was just reading over the code and spotted the above suspected typo. The second if condition is identical to the block above, however, the message suggests that it should check the 'initialization' parameters.

Good spot! Will Fix ASAP.