Reverte added site paramezer in wave_create
authorJul3k <julek.hoffmann@gmail.com>
Thu, 5 Mar 2020 13:02:26 +0000 (14:02 +0100)
committerJul3k <julek.hoffmann@gmail.com>
Thu, 5 Mar 2020 13:02:26 +0000 (14:02 +0100)
command.c
pigpio.h
pigpio.py

index 0687057c62b8acc163a86135ef300b3269c2725d..4a1da4dc7b0978e9077a1da9e36e7bc727e7b559 100644 (file)
--- a/command.c
+++ b/command.c
@@ -201,7 +201,7 @@ cmdInfo_t cmdInfo[]=
    {PI_CMD_WVBSY, "WVBSY", 101, 2, 1}, // gpioWaveTxBusy
    {PI_CMD_WVCHA, "WVCHA", 197, 0, 0}, // gpioWaveChain
    {PI_CMD_WVCLR, "WVCLR", 101, 0, 1}, // gpioWaveClear
-   {PI_CMD_WVCRE, "WVCRE", 112, 2, 1}, // gpioWaveCreate
+   {PI_CMD_WVCRE, "WVCRE", 101, 2, 1}, // gpioWaveCreate
    {PI_CMD_WVDEL, "WVDEL", 112, 0, 1}, // gpioWaveDelete
    {PI_CMD_WVGO,  "WVGO" , 101, 2, 0}, // gpioWaveTxStart
    {PI_CMD_WVGOR, "WVGOR", 101, 2, 0}, // gpioWaveTxStart
index 8930d12807e55ebe1a1ce1821951c0ccf2a1515c..e3eb97d93e83b92c94e5122cf9d15e872ac93d06 100644 (file)
--- a/pigpio.h
+++ b/pigpio.h
@@ -1933,7 +1933,7 @@ D*/
 
 
 /*F*/
-int gpioWaveCreate(int);
+int gpioWaveCreate(void);
 /*D
 This function creates a waveform from the data provided by the prior
 calls to the [*gpioWaveAdd**] functions.  Upon success a wave id
index af63a19ee8c21e6496d2b11464d75f3ecdeb13f7..cfaf845ed4617ef482fb9b987ae9f0cb541fed49 100644 (file)
--- a/pigpio.py
+++ b/pigpio.py
@@ -2257,7 +2257,7 @@ class pi():
       else:
          return 0
 
-   def wave_create(self, size):
+   def wave_create(self):
       """
       Creates a waveform from the data provided by the prior calls
       to the [*wave_add_**] functions.
@@ -2302,7 +2302,7 @@ class pi():
       wid = pi.wave_create()
       ...
       """
-      return _u2i(_pigpio_command(self.sl, _PI_CMD_WVCRE, size, 0))
+      return _u2i(_pigpio_command(self.sl, _PI_CMD_WVCRE, 0, 0))
 
    def wave_delete(self, wave_id):
       """