Reverte added site paramezer in wave_create

This commit is contained in:
Jul3k 2020-03-05 14:02:26 +01:00
parent 71fe78aac9
commit 773378fd24
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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):
"""