From d8a901c927fb28a5a7f92f1ce99868fe5e89de60 Mon Sep 17 00:00:00 2001 From: razvanm Date: Tue, 15 Jul 2008 23:36:36 +0000 Subject: [PATCH] Switch boot_* calls to boot_*_safe. This restores the exact functionality of the boot.h that was used some time ago. Thanks to Aurelien Francillon for finding this. --- tos/lib/tosboot/avr/ProgFlashM.nc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tos/lib/tosboot/avr/ProgFlashM.nc b/tos/lib/tosboot/avr/ProgFlashM.nc index 24644933..898ebc64 100644 --- a/tos/lib/tosboot/avr/ProgFlashM.nc +++ b/tos/lib/tosboot/avr/ProgFlashM.nc @@ -46,17 +46,17 @@ implementation { if ( addr + len > TOSBOOT_START ) return FAIL; - boot_page_erase( addr ); + boot_page_erase_safe( addr ); while( boot_rww_busy() ) - boot_rww_enable(); + boot_rww_enable_safe(); for ( i = 0; i < len; i += 2 ) - boot_page_fill( addr + i, *wordBuf++ ); + boot_page_fill_safe( addr + i, *wordBuf++ ); - boot_page_write( addr ); + boot_page_write_safe( addr ); while ( boot_rww_busy() ) - boot_rww_enable(); + boot_rww_enable_safe(); return SUCCESS; -- 2.39.2