application: fix cables_issues_nb

This commit is contained in:
King Kévin 2020-01-30 17:37:59 +01:00
parent a682dc985a
commit cd9f4e12de
1 changed files with 0 additions and 3 deletions

View File

@ -471,9 +471,6 @@ static void cable_issues_nb(struct cable_t* cable)
cable->connections = NULL;
}
cable->connections = (uint8_t (*)[2])usb_cables_test_connections(connectors, connectors_nb, true, false, &cable->connections_nb);
if (NULL == cable->connections || 0 == cable->connections_nb) {
return;
}
// calculate score for cables
uint16_t best_score = UINT16_MAX; // best cable score