From 5130e9a1205d8170e92c33f4b72ea4c1fe7a0ccc Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 19 Feb 2022 11:45:03 +0100 Subject: [PATCH] sx126x: update to use new device package location Signed-off-by: deadprogram --- examples/sx126x/lora_rxtx/lora_rxtx.go | 3 ++- sx126x/spi_stm32wl.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/sx126x/lora_rxtx/lora_rxtx.go b/examples/sx126x/lora_rxtx/lora_rxtx.go index 7c13b93..b73bad8 100644 --- a/examples/sx126x/lora_rxtx/lora_rxtx.go +++ b/examples/sx126x/lora_rxtx/lora_rxtx.go @@ -4,11 +4,12 @@ package main // module will be in RX mode between two transmissions import ( - "device/stm32" "machine" "runtime/interrupt" "time" + "tinygo.org/x/device/stm32" + rfswitch "tinygo.org/x/drivers/examples/sx126x/rfswitch" "tinygo.org/x/drivers/sx126x" diff --git a/sx126x/spi_stm32wl.go b/sx126x/spi_stm32wl.go index 540dd5b..d5f5148 100644 --- a/sx126x/spi_stm32wl.go +++ b/sx126x/spi_stm32wl.go @@ -4,9 +4,9 @@ package sx126x import ( - "device/stm32" "errors" "machine" + "tinygo.org/x/device/stm32" "tinygo.org/x/drivers" )