Potential sources can be printed to the terminal.
authorFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Tue, 31 Oct 2017 15:08:14 +0000 (11:08 -0400)
committerFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Tue, 31 Oct 2017 15:08:14 +0000 (11:08 -0400)
src/sink/snk_pots.c

index b6b9885ce68e2f049a312a4383fa5603b2c3eb99..a7ac5dfb1c3fdb92dd3db4422a9755ade7437f32 100644 (file)
@@ -18,7 +18,8 @@
         if (!(((obj->interface->type == interface_blackhole)  && (obj->format->type == format_undefined)) ||
               ((obj->interface->type == interface_file)  && (obj->format->type == format_binary_float)) ||
               ((obj->interface->type == interface_file)  && (obj->format->type == format_text_json)) ||
-              ((obj->interface->type == interface_socket)  && (obj->format->type == format_text_json)))) {
+              ((obj->interface->type == interface_socket)  && (obj->format->type == format_text_json)) ||
+              ((obj->interface->type == interface_terminal) && (obj->format->type == format_text_json)))) {
             
             printf("Sink pots: Invalid interface and/or format.\n");
             exit(EXIT_FAILURE);