aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/DFU
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-06-08 07:34:16 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-06-08 07:34:16 +0000
commitac70ddd0a1c412bb54def48e53caaebd0b5c9c61 (patch)
treea36501a89cb67ffffd278d94ae4b6519b1d60af9 /Bootloaders/DFU
parent33a018474913701fa9ef8e962acf58accd1184d2 (diff)
downloadlufa-ac70ddd0a1c412bb54def48e53caaebd0b5c9c61.tar.gz
lufa-ac70ddd0a1c412bb54def48e53caaebd0b5c9c61.tar.bz2
lufa-ac70ddd0a1c412bb54def48e53caaebd0b5c9c61.zip
Converted Host mode demos to schedulerless. Fixed host mode broken due to earlier Start-of-frame event experiments.
Diffstat (limited to 'Bootloaders/DFU')
-rw-r--r--Bootloaders/DFU/BootloaderDFU.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c
index 11177c5a6..1850803d4 100644
--- a/Bootloaders/DFU/BootloaderDFU.c
+++ b/Bootloaders/DFU/BootloaderDFU.c
@@ -342,7 +342,7 @@ void EVENT_USB_UnhandledControlPacket(void)
}
/* Read the flash word and send it via USB to the host */
- #if defined(RAMPZ)
+ #if (FLASHEND > 0xFFFF)
Endpoint_Write_Word_LE(pgm_read_word_far(CurrFlashAddress.Long));
#else
Endpoint_Write_Word_LE(pgm_read_word(CurrFlashAddress.Long));
@@ -585,7 +585,7 @@ static void ProcessMemReadCommand(void)
while (CurrFlashAddress < BOOT_START_ADDR)
{
/* Check if the current byte is not blank */
- #if defined(RAMPZ)
+ #if (FLASHEND > 0xFFFF)
if (pgm_read_byte_far(CurrFlashAddress) != 0xFF)
#else
if (pgm_read_byte(CurrFlashAddress) != 0xFF)