Skip to content

Commit faed0d4

Browse files
committed
Remove unnecessary pin_set, save 50ms
1 parent ee44b6f commit faed0d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/drivers/Cst816s.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Cst816S::Cst816S(TwiMaster& twiMaster, uint8_t twiAddress) : twiMaster {twiMaste
1919

2020
void Cst816S::Init() {
2121
nrf_gpio_cfg_output(pinReset);
22-
nrf_gpio_pin_set(pinReset);
23-
vTaskDelay(50);
22+
//nrf_gpio_pin_set(pinReset);
23+
//vTaskDelay(5);
2424
nrf_gpio_pin_clear(pinReset);
2525
vTaskDelay(5);
2626
nrf_gpio_pin_set(pinReset);

0 commit comments

Comments
 (0)