Make pwroff_after_write a yes/no field instead of a numeric.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@126 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bsd 2002-02-14 03:04:22 +00:00
parent a7a7e9a9db
commit fb1765f1a7
2 changed files with 4 additions and 4 deletions

View File

@ -422,7 +422,7 @@ part
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
"x x x x x x x x x x x x x x x x";
pwroff_after_write = 1;
pwroff_after_write = yes;
;
memory "lock"
size = 1;
@ -500,7 +500,7 @@ part
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
"x x x x x x x x x x x x x x x x";
pwroff_after_write = 1;
pwroff_after_write = yes;
;
memory "lock"
size = 1;

View File

@ -399,9 +399,9 @@ mem_spec :
free_token($3);
} |
K_PWROFF_AFTER_WRITE TKN_EQUAL TKN_NUMBER
K_PWROFF_AFTER_WRITE TKN_EQUAL yesno
{
current_mem->pwroff_after_write = $3->value.number;
current_mem->pwroff_after_write = $3->primary == K_YES ? 1 : 0;
free_token($3);
} |