GHA update

Fmt fixes

Spawn_after did not work with parameters

Examples working again

Revert "GHA update"

This reverts commit e0a71d4859966a6c5cf2629d3cb27e88acada9c0.

Readd flags

Only add DWT based dep with __v7 flag
This commit is contained in:
Emil Fresk 2021-02-23 19:35:26 +01:00
parent 670cdb92d3
commit cd3484cbab
8 changed files with 143 additions and 70 deletions

View file

@ -116,7 +116,10 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
let ty = &monotonic.ty;
let mangled_name = util::mangle_monotonic_type(&name_str);
let ident = util::monotonic_ident(&name_str);
let panic_str = &format!("Use of monotonic '{}' before it was passed to the runtime", name_str);
let panic_str = &format!(
"Use of monotonic '{}' before it was passed to the runtime",
name_str
);
quote! {
pub use rtic::Monotonic as _;

View file

@ -263,7 +263,7 @@ pub fn codegen(
pub mod #m {
#(#cfgs)*
pub fn spawn_after<D>(
duration: D,
duration: D
#(,#args)*
) -> Result<(), #ty>
where D: rtic::time::duration::Duration + rtic::time::fixed_point::FixedPoint,
@ -276,7 +276,7 @@ pub fn codegen(
#app_path::#m::now()
};
spawn_at(instant + duration, #(,#untupled)*)
spawn_at(instant + duration #(,#untupled)*)
}
#(#cfgs)*