mirror of
https://github.com/vivier/EMILE.git
synced 2025-03-11 08:32:45 +00:00
correctly use config_get_property() in emile-set-output
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
2b5a4fc3bf
commit
4f3aa35240
@ -139,22 +139,22 @@ static int display_output(char* image)
|
|||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
if (config_get_property(configuration, "vga", property) == 0)
|
if (config_get_property(configuration, "vga", property) != -1)
|
||||||
printf("Output to display enabled (%s)\n", property);
|
printf("Output to display enabled (%s)\n", property);
|
||||||
else
|
else
|
||||||
printf("Output to display disabled\n");
|
printf("Output to display disabled\n");
|
||||||
|
|
||||||
if (config_get_property(configuration, "modem", property) == 0)
|
if (config_get_property(configuration, "modem", property) != -1)
|
||||||
printf("Output to serial port 0 (modem) enabled (%s)\n", property);
|
printf("Output to serial port 0 (modem) enabled (%s)\n", property);
|
||||||
else
|
else
|
||||||
printf("Output to serial port 0 (modem) disabled\n");
|
printf("Output to serial port 0 (modem) disabled\n");
|
||||||
|
|
||||||
if (config_get_property(configuration, "printer", property) == 0)
|
if (config_get_property(configuration, "printer", property) != -1)
|
||||||
printf("Output to serial port 1 (printer) enabled (%s)\n", property);
|
printf("Output to serial port 1 (printer) enabled (%s)\n", property);
|
||||||
else
|
else
|
||||||
printf("Output to serial port 1 (printer) disabled\n");
|
printf("Output to serial port 1 (printer) disabled\n");
|
||||||
|
|
||||||
if (config_get_property(configuration, "gestaltID", property) == 0)
|
if (config_get_property(configuration, "gestaltID", property) != -1)
|
||||||
printf("Force Gestalt ID to %ld\n", strtol(property, NULL, 0));
|
printf("Force Gestalt ID to %ld\n", strtol(property, NULL, 0));
|
||||||
else
|
else
|
||||||
printf("Gestalt ID is not modified\n");
|
printf("Gestalt ID is not modified\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user