summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@wirdorange.org>2013-01-27 21:38:19 +0000
committerOthmar Gsenger <otti@wirdorange.org>2013-01-27 21:38:19 +0000
commit80cf855b9bec617bed3238e367a65306338c4b2d (patch)
tree9f157eaba08fb01f809236f4ed5d859ea011fef2 /usb-i2c-sl018
parenteeprom write/dump working (diff)
added flash debug output
git-svn-id: https://svn.spreadspace.org/avr/trunk@73 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-i2c-sl018')
-rw-r--r--usb-i2c-sl018/tuer-rfid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usb-i2c-sl018/tuer-rfid.c b/usb-i2c-sl018/tuer-rfid.c
index 46f3db3..1d85fbe 100644
--- a/usb-i2c-sl018/tuer-rfid.c
+++ b/usb-i2c-sl018/tuer-rfid.c
@@ -159,6 +159,7 @@ void flash_eeprom_from_usb(void)
{
keyslot_t keyslot;
uint8_t keyslot_pos=0;
+ fprintf(usb,"Flashing keys: ");
for(keyslot_pos=0;keyslot_pos<EEPROM_SIZE/sizeof(keyslot);)
{
@@ -168,8 +169,11 @@ void flash_eeprom_from_usb(void)
eeprom_update_block(&keyslot,&keyslots[keyslot_pos],sizeof(keyslot));
BytesReceived-=sizeof(keyslot);
keyslot_pos++;
+ led_toggle();
+ fprintf(usb,".");
}
}
+ fprintf(usb,"\n");
}
void dump_eeprom_to_usb(void)