dsm: add deinit function

This implements closing of the serial port which previously was not
taken care of.
This commit is contained in:
Julian Oes
2016-12-20 14:38:28 +01:00
committed by Lorenz Meier
parent c0fcffae76
commit 97fe56a4e7
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -305,6 +305,13 @@ dsm_init(const char *device)
}
}
void
dsm_deinit()
{
close(dsm_fd);
dsm_fd = -1;
}
#ifdef GPIO_SPEKTRUM_PWR_EN
/**
* Handle DSM satellite receiver bind mode handler