fixed the bug

This commit is contained in:
2018-01-04 13:45:41 +01:00
parent 71f5918e54
commit 645619e9c5
6 changed files with 19 additions and 10 deletions
+1
View File
@@ -124,6 +124,7 @@ static void Npx_deInit(Unit *unit)
struct priv *priv = unit->data;
if (unit->status == E_SUCCESS) {
assert_param(priv->port);
// configure the pin as analog
LL_GPIO_SetPinMode(priv->port, priv->ll_pin, LL_GPIO_MODE_ANALOG);
}