]> git.feebdaed.xyz Git - 0xmirror/WiringPi.git/commitdiff
wiringPiSPISetupMode fix
authormstroh76 <m.stroh76@gmail.com>
Fri, 6 Jun 2025 17:38:14 +0000 (19:38 +0200)
committermstroh76 <m.stroh76@gmail.com>
Fri, 6 Jun 2025 17:38:14 +0000 (19:38 +0200)
documentation/deutsch/functions.md
documentation/english/functions.md

index ff12ccc19a2e8c56e89c67ea60cd42c5322fcc8d..0c86b55ca4b17c55fbe42e12b5f8e8efdcbee90a 100644 (file)
@@ -802,8 +802,10 @@ Die alten Funktionen bleiben erhalten beziehen sich allerdings immer auf den SPI
 
 >>>
 ```C
-int wiringPiSPISetup (int channel, int speed)
-int wiringPiSPISetup (int channel, int speed, int mode)
+int wiringPiSPISetup(int channel, int speed)
+
+int wiringPiSPISetupMode(int channel, int speed, int mode)
+
 int wiringPiSPIxSetupMode(const int number, const int channel, const int speed, const int mode)
 ```
 
index 981786b1be3f93637f34f14f36c287d6a9fe29bd..f13874a972ec51fa8a52d8744ad2d8b894fd8210 100644 (file)
@@ -791,9 +791,9 @@ Functions that start with  ``wiringPiSPIx`` are new since version 3, allowing th
 Opens the specified SPI bus. The Raspberry Pi has 2 channels, 0 and 1. The speed parameter is an integer in the range of 500,000 through 32,000,000 and represents the SPI clock speed in Hz.
 
 ```C
-int wiringPiSPISetup (int channel, int speed);
+int wiringPiSPISetup(int channel, int speed);
 
-int wiringPiSPISetupMode (int channel, int speed, int mode);
+int wiringPiSPISetupMode(int channel, int speed, int mode);
 
 int wiringPiSPIxSetupMode(const int number, const int channel, const int speed, const int mode);
 ```