Line 675... |
Line 675... |
675 |
|
675 |
|
676 |
// Verify writen data |
676 |
// Verify writen data |
677 |
BOOL VerifySuccess = TRUE; |
677 |
BOOL VerifySuccess = TRUE; |
678 |
_sleep(100);; |
678 |
_sleep(100);; |
679 |
|
679 |
|
680 |
//#ifndef _VS6_USED |
680 |
#ifndef _VS6_USED |
681 |
int el; |
681 |
int el; |
682 |
//#endif |
682 |
#endif |
683 |
for (el=0; el< (int)NbElements;el++) |
683 |
for (el=0; el< (int)NbElements;el++) |
684 |
{ |
684 |
{ |
685 |
IMAGEELEMENT Element={0}; |
685 |
IMAGEELEMENT Element={0}; |
686 |
if (FILES_GetImageElement(Image, el, &Element) == FILES_NOERROR) |
686 |
if (FILES_GetImageElement(Image, el, &Element) == FILES_NOERROR) |
687 |
{ |
687 |
{ |
Line 753... |
Line 753... |
753 |
|
753 |
|
754 |
WaitForMoreSubOpt = false; |
754 |
WaitForMoreSubOpt = false; |
755 |
|
755 |
|
756 |
printf("\nerasing %i sectors : ", sectors[0]); |
756 |
printf("\nerasing %i sectors : ", sectors[0]); |
757 |
|
757 |
|
758 |
//#ifndef _VS6_USED |
758 |
#ifndef _VS6_USED |
759 |
int i; |
759 |
int i; |
760 |
//#endif |
760 |
#endif |
761 |
|
761 |
|
762 |
for(i = 1; i<= nsec; i++) |
762 |
for(i = 1; i<= nsec; i++) |
763 |
{ |
763 |
{ |
764 |
printf("<%i>", sectors[i]); |
764 |
printf("<%i>", sectors[i]); |
765 |
} |
765 |
} |
Line 1159... |
Line 1159... |
1159 |
|
1159 |
|
1160 |
// Verify writen data |
1160 |
// Verify writen data |
1161 |
BOOL VerifySuccess = TRUE; |
1161 |
BOOL VerifySuccess = TRUE; |
1162 |
_sleep(100); |
1162 |
_sleep(100); |
1163 |
|
1163 |
|
1164 |
//#ifndef _VS6_USED |
1164 |
#ifndef _VS6_USED |
1165 |
int el; |
1165 |
int el; |
1166 |
//#endif |
1166 |
#endif |
1167 |
|
1167 |
|
1168 |
for (el=0; el< (int)NbElements;el++) |
1168 |
for (el=0; el< (int)NbElements;el++) |
1169 |
{ |
1169 |
{ |
1170 |
IMAGEELEMENT Element={0}; |
1170 |
IMAGEELEMENT Element={0}; |
1171 |
if (FILES_GetImageElement(Image, el, &Element) == FILES_NOERROR) |
1171 |
if (FILES_GetImageElement(Image, el, &Element) == FILES_NOERROR) |
Line 1594... |
Line 1594... |
1594 |
} |
1594 |
} |
1595 |
|
1595 |
|
1596 |
|
1596 |
|
1597 |
printf("\nenabling write protection %i sectors : ", sectors[0]); |
1597 |
printf("\nenabling write protection %i sectors : ", sectors[0]); |
1598 |
|
1598 |
|
1599 |
//#ifndef _VS6_USED |
1599 |
#ifndef _VS6_USED |
1600 |
int i; |
1600 |
int i; |
1601 |
//#endif |
1601 |
#endif |
1602 |
|
1602 |
|
1603 |
for(i = 1; i<= nsec; i++) |
1603 |
for(i = 1; i<= nsec; i++) |
1604 |
{ |
1604 |
{ |
1605 |
printf("<%i>", sectors[i]); |
1605 |
printf("<%i>", sectors[i]); |
1606 |
} |
1606 |
} |