mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-02 00:14:33 +01:00
generate error if "rt" feature is not enabled
This commit is contained in:
parent
8b2c07636c
commit
f042807d43
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ pub fn instants_ident(task: &Ident, sender: Core) -> Ident {
|
||||||
pub fn interrupt_ident(core: Core, cores: u8) -> Ident {
|
pub fn interrupt_ident(core: Core, cores: u8) -> Ident {
|
||||||
let span = Span::call_site();
|
let span = Span::call_site();
|
||||||
if cores == 1 {
|
if cores == 1 {
|
||||||
Ident::new("Interrupt", span)
|
Ident::new("interrupt", span)
|
||||||
} else {
|
} else {
|
||||||
Ident::new(&format!("Interrupt_{}", core), span)
|
Ident::new(&format!("Interrupt_{}", core), span)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue