From a797bef0d24176ebb08cdc5723337911566f8802 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 7 May 2023 07:17:47 +0100 Subject: [PATCH] Fixed term order for RPi example --- examples/NonArduino/Raspberry/PiHal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/NonArduino/Raspberry/PiHal.h b/examples/NonArduino/Raspberry/PiHal.h index 7929138e..4c9c7bef 100644 --- a/examples/NonArduino/Raspberry/PiHal.h +++ b/examples/NonArduino/Raspberry/PiHal.h @@ -36,12 +36,12 @@ class PiHal : public RadioLibHal { // stop the SPI spiEnd(); - // and now the pigpio library - gpioTerminate(); - - // finally, pull the enable pin low + // pull the enable pin low gpioSetMode(18, PI_OUTPUT); gpioWrite(18, PI_LOW); + + // finally, stop the pigpio library + gpioTerminate(); } // GPIO-related methods (pinMode, digitalWrite etc.) should check