Commit f0a20369 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

Downloader: print all received messages with details as info

parent 95d2a967
......@@ -562,7 +562,11 @@ sub _download_test {
# download test via serial
my $recv_msg = _test_fi_uart($port, \@payload, $t1_duration, $t2_duration, $trigger_en, $trigger_ext, $reset, $fiji_design_consts, $dryrun);
if (ref($recv_msg) eq "HASH") {
my $log_msg = "Received " . $recv_msg->{'msg_type'} . " message";
$log_msg .= sprintf(": U=%d, I=%d, C=%d, F1=%d, F2=%d,", $recv_msg->{'error'}->{'U'}, $recv_msg->{'error'}->{'I'}, $recv_msg->{'error'}->{'C'}, $recv_msg->{'fault_detect'}->{'1'}, $recv_msg->{'fault_detect'}->{'2'}) if (defined($recv_msg->{'error'}));
$logger->info($log_msg);
}
return $recv_msg;
}
......
......@@ -395,7 +395,6 @@ sub _update_rmsg_status {
$self->{'fault_detect_1'}->configure(-bg => ($rmsg->{'fault_detect'}->{'1'}) ? FAILEDCOLOR : OKCOLOR) if ($self->{'settings'}->{'design'}->{'FAULT_DETECT_1_EN'} == 1);
$self->{'fault_detect_2'}->configure(-bg => ($rmsg->{'fault_detect'}->{'2'}) ? FAILEDCOLOR : OKCOLOR) if ($self->{'settings'}->{'design'}->{'FAULT_DETECT_2_EN'} == 1);
$self->{'msg_type'}->configure(-text => $rmsg->{'msg_type'}, -bg => $widget_background);
$logger->debug("Received " . $rmsg->{'msg_type'} . " message");
}
## @method _switchtab(nb, inc)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment