Remove unnecessary pin_set, save 50ms
This commit is contained in:
parent
ee44b6ff49
commit
faed0d4900
|
@ -19,8 +19,8 @@ Cst816S::Cst816S(TwiMaster& twiMaster, uint8_t twiAddress) : twiMaster {twiMaste
|
|||
|
||||
void Cst816S::Init() {
|
||||
nrf_gpio_cfg_output(pinReset);
|
||||
nrf_gpio_pin_set(pinReset);
|
||||
vTaskDelay(50);
|
||||
//nrf_gpio_pin_set(pinReset);
|
||||
//vTaskDelay(5);
|
||||
nrf_gpio_pin_clear(pinReset);
|
||||
vTaskDelay(5);
|
||||
nrf_gpio_pin_set(pinReset);
|
||||
|
|
Loading…
Reference in a new issue