recover GPIOD 11 state after changing it

This commit is contained in:
ІО-23 Шмуляр Олег 2025-02-20 01:07:55 +02:00
parent 5b4d65d45c
commit 28b840f1a4
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ static void dht11_read_value(struct DHT11_Data *data)
FILL_REGISTER;
data->crc = read_register;
// switch GPIOD 11 back to output mode
GPIOD->MODER |= 0x00900000;
dht11_load_systick_state();
}