From 6ad21f04248da776585fd97bc23a50f38743bb95 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Thu, 14 Feb 2002 03:04:22 +0000 Subject: [PATCH] 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 --- avrdude.conf.sample | 4 ++-- config_gram.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/avrdude.conf.sample b/avrdude.conf.sample index a1d9d820..f33f308b 100644 --- a/avrdude.conf.sample +++ b/avrdude.conf.sample @@ -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; diff --git a/config_gram.y b/config_gram.y index e5afc493..1b0a1d7f 100644 --- a/config_gram.y +++ b/config_gram.y @@ -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); } |