Merge pull request #1763 from rubdos/sender-receiver-with-ctx

Refactor Channel/Sender/Receiver poll methods
This commit is contained in:
Dario Nieuwenhuis
2023-08-22 21:25:29 +00:00
committed by GitHub
14 changed files with 160 additions and 83 deletions

View File

@ -113,7 +113,7 @@ async fn core1_task(
};
loop {
let buffer: [u8; 3] = CHANNEL.recv().await;
let buffer: [u8; 3] = CHANNEL.receive().await;
match lora.prepare_for_tx(&mdltn_params, 20, false).await {
Ok(()) => {}
Err(err) => {

View File

@ -56,7 +56,7 @@ async fn core0_task() {
async fn core1_task(mut led: Output<'static, PIN_25>) {
info!("Hello from core 1");
loop {
match CHANNEL.recv().await {
match CHANNEL.receive().await {
LedState::On => led.set_high(),
LedState::Off => led.set_low(),
}