esp-rs / esp32-hal

A hardware abstraction layer for the esp32 written in Rust.
Apache License 2.0
192 stars 28 forks source link

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

Closed enrikb closed 3 years ago

enrikb commented 3 years ago

https://github.com/esp-rs/esp32-hal/blob/459bb29f661e7b6c3ef5cf99dc7335326276e880/procmacros/src/lib.rs#L69-L79

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.

MabezDev commented 3 years ago

Good spot! Will Fix ASAP.