Merge pull request #1237 from MCUdude/print-expected-signature

Print expected signature when the one read by the programmer doesn't match the expected one
This commit is contained in:
mcuee
2022-12-27 08:56:25 +08:00
committed by GitHub

View File

@@ -1348,6 +1348,8 @@ int main(int argc, char * argv [])
msg_info("\n"); msg_info("\n");
pmsg_error("Yikes! Invalid device signature.\n"); pmsg_error("Yikes! Invalid device signature.\n");
if (!ovsigck) { if (!ovsigck) {
pmsg_error("expected signature for %s is %02X %02X %02X\n", p->desc,
p->signature[0], p->signature[1], p->signature[2]);
imsg_error("Double check connections and try again, or use -F to override\n"); imsg_error("Double check connections and try again, or use -F to override\n");
imsg_error("this check.\n\n"); imsg_error("this check.\n\n");
exitrc = 1; exitrc = 1;