mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 03:29:49 +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);
|
||||
|
||||
if (config_get_property(configuration, "vga", property) == 0)
|
||||
if (config_get_property(configuration, "vga", property) != -1)
|
||||
printf("Output to display enabled (%s)\n", property);
|
||||
else
|
||||
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);
|
||||
else
|
||||
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);
|
||||
else
|
||||
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));
|
||||
else
|
||||
printf("Gestalt ID is not modified\n");
|
||||
|
Loading…
Reference in New Issue
Block a user