From 773378fd24e1a8584613c0b3385f411caae9c7c2 Mon Sep 17 00:00:00 2001 From: Jul3k Date: Thu, 5 Mar 2020 14:02:26 +0100 Subject: [PATCH] Reverte added site paramezer in wave_create --- command.c | 2 +- pigpio.h | 2 +- pigpio.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/command.c b/command.c index 0687057..4a1da4d 100644 --- 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 diff --git a/pigpio.h b/pigpio.h index 8930d12..e3eb97d 100644 --- 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 diff --git a/pigpio.py b/pigpio.py index af63a19..cfaf845 100644 --- 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): """