generate error if "rt" feature is not enabled

This commit is contained in:
Jorge Aparicio 2021-07-05 19:54:52 +02:00
parent 8b2c07636c
commit f042807d43

View file

@ -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)
} }