|
@@ -181,6 +181,21 @@ int main(int argc, char **argv) {
|
181
|
181
|
die("Device protocol is %s but this program supports 2.x only.\n",
|
182
|
182
|
data->device.protocol_ver);
|
183
|
183
|
|
|
184
|
+ if (!data->device.dev_present) {
|
|
185
|
+ if (data->device.needs_fw_update) {
|
|
186
|
+ die("Device reports that it needs firmware update.");
|
|
187
|
+ }
|
|
188
|
+ die("Device reports that it's not present.");
|
|
189
|
+ }
|
|
190
|
+
|
|
191
|
+ if (data->device.num_video_inputs > ARRAY_SIZE(data->inputs))
|
|
192
|
+ die("The device supports %d inputs. Recompile the program with more MAX_INPUTS (currently %d)",
|
|
193
|
+ data->device.num_video_inputs, MAX_INPUTS);
|
|
194
|
+
|
|
195
|
+ if (data->device.num_video_outputs > ARRAY_SIZE(data->outputs))
|
|
196
|
+ die("The device supports %d outputs. Recompile the program with more MAX_OUTPUTS (currently %d)\n",
|
|
197
|
+ data->device.num_video_outputs, MAX_OUTPUTS);
|
|
198
|
+
|
184
|
199
|
if (show_monitor) {
|
185
|
200
|
while (1) {
|
186
|
201
|
printf("\e[2J\e[H"); // Clear screen
|