Fixed term order for RPi example
This commit is contained in:
parent
f96881700f
commit
a797bef0d2
1 changed files with 4 additions and 4 deletions
|
@ -36,12 +36,12 @@ class PiHal : public RadioLibHal {
|
||||||
// stop the SPI
|
// stop the SPI
|
||||||
spiEnd();
|
spiEnd();
|
||||||
|
|
||||||
// and now the pigpio library
|
// pull the enable pin low
|
||||||
gpioTerminate();
|
|
||||||
|
|
||||||
// finally, pull the enable pin low
|
|
||||||
gpioSetMode(18, PI_OUTPUT);
|
gpioSetMode(18, PI_OUTPUT);
|
||||||
gpioWrite(18, PI_LOW);
|
gpioWrite(18, PI_LOW);
|
||||||
|
|
||||||
|
// finally, stop the pigpio library
|
||||||
|
gpioTerminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// GPIO-related methods (pinMode, digitalWrite etc.) should check
|
// GPIO-related methods (pinMode, digitalWrite etc.) should check
|
||||||
|
|
Loading…
Add table
Reference in a new issue