mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00
Don't require importing macro for esp-config (#2630)
This commit is contained in:
parent
2d87bb0002
commit
2d3fdeb876
@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Users no longer have to manually import `esp_config_int_parse`. (#2630)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
@ -29,7 +29,7 @@ macro_rules! esp_config_int {
|
|||||||
( $ty:ty, $var:expr ) => {
|
( $ty:ty, $var:expr ) => {
|
||||||
const {
|
const {
|
||||||
const BYTES: &[u8] = env!($var).as_bytes();
|
const BYTES: &[u8] = env!($var).as_bytes();
|
||||||
esp_config_int_parse!($ty, BYTES)
|
$crate::esp_config_int_parse!($ty, BYTES)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user