1
0
Fork 0

Remove unnecessary pin_set, save 50ms

This commit is contained in:
hubmartin 2021-08-15 16:47:41 +02:00
parent ee44b6ff49
commit faed0d4900

View file

@ -19,8 +19,8 @@ Cst816S::Cst816S(TwiMaster& twiMaster, uint8_t twiAddress) : twiMaster {twiMaste
void Cst816S::Init() { void Cst816S::Init() {
nrf_gpio_cfg_output(pinReset); nrf_gpio_cfg_output(pinReset);
nrf_gpio_pin_set(pinReset); //nrf_gpio_pin_set(pinReset);
vTaskDelay(50); //vTaskDelay(5);
nrf_gpio_pin_clear(pinReset); nrf_gpio_pin_clear(pinReset);
vTaskDelay(5); vTaskDelay(5);
nrf_gpio_pin_set(pinReset); nrf_gpio_pin_set(pinReset);