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:
parent
f7b64467de
commit
6ad21f0424
|
@ -422,7 +422,7 @@ part
|
||||||
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
|
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";
|
"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"
|
memory "lock"
|
||||||
size = 1;
|
size = 1;
|
||||||
|
@ -500,7 +500,7 @@ part
|
||||||
write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
|
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";
|
"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"
|
memory "lock"
|
||||||
size = 1;
|
size = 1;
|
||||||
|
|
|
@ -399,9 +399,9 @@ mem_spec :
|
||||||
free_token($3);
|
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);
|
free_token($3);
|
||||||
} |
|
} |
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue