Ticket #46477: patch-stm32.c.diff
File patch-stm32.c.diff, 1.1 KB (added by ranauei@…, 10 years ago) |
---|
-
stm32.c
old new 604 604 return STM32_ERR_UNKNOWN; 605 605 606 606 s_err = stm32_get_ack_timeout(stm, STM32_WUNPROT_TIMEOUT); 607 if (s_err == STM32_ NACK) {607 if (s_err == STM32_ERR_NACK) { 608 608 fprintf(stderr, "Error: Failed to WRITE UNPROTECT\n"); 609 609 return STM32_ERR_UNKNOWN; 610 610 } … … 631 631 return STM32_ERR_UNKNOWN; 632 632 633 633 s_err = stm32_get_ack_timeout(stm, STM32_WPROT_TIMEOUT); 634 if (s_err == STM32_ NACK) {634 if (s_err == STM32_ERR_NACK) { 635 635 fprintf(stderr, "Error: Failed to WRITE PROTECT\n"); 636 636 return STM32_ERR_UNKNOWN; 637 637 } … … 658 658 return STM32_ERR_UNKNOWN; 659 659 660 660 s_err = stm32_get_ack_timeout(stm, STM32_MASSERASE_TIMEOUT); 661 if (s_err == STM32_ NACK) {661 if (s_err == STM32_ERR_NACK) { 662 662 fprintf(stderr, "Error: Failed to READOUT UNPROTECT\n"); 663 663 return STM32_ERR_UNKNOWN; 664 664 } … … 685 685 return STM32_ERR_UNKNOWN; 686 686 687 687 s_err = stm32_get_ack_timeout(stm, STM32_RPROT_TIMEOUT); 688 if (s_err == STM32_ NACK) {688 if (s_err == STM32_ERR_NACK) { 689 689 fprintf(stderr, "Error: Failed to READOUT PROTECT\n"); 690 690 return STM32_ERR_UNKNOWN; 691 691 }