mirror of
https://github.com/FunKey-Project/fkgpiod.git
synced 2025-12-12 16:08:51 +01:00
test init_gpio_mapping return value
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
921436805f
commit
d9ff82b012
12
main.c
12
main.c
@ -225,7 +225,17 @@ int main(int argc, char *argv[])
|
|||||||
init_uinput();
|
init_uinput();
|
||||||
|
|
||||||
/* Initialize the GPIO mapping */
|
/* Initialize the GPIO mapping */
|
||||||
init_gpio_mapping(config_file, &mapping_list);
|
if (init_gpio_mapping(config_file, &mapping_list) == false) {
|
||||||
|
|
||||||
|
/* Close the uinput device */
|
||||||
|
close_uinput();
|
||||||
|
if (daemon) {
|
||||||
|
|
||||||
|
/* Close the syslog */
|
||||||
|
closelog();
|
||||||
|
}
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
/* Main loop to handle the GPIOs */
|
/* Main loop to handle the GPIOs */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user