Browse Source

fix shared mem

optixx 14 years ago
parent
commit
c897497e24
1 changed files with 2 additions and 1 deletions
  1. 2 1
      avr/usbload/shared_memory.c

+ 2 - 1
avr/usbload/shared_memory.c

@@ -172,6 +172,7 @@ void shared_memory_scratchpad_region_rx_restore()
     
 
     debug_P(DEBUG_SHM, PSTR("shared_memory_scratchpad_region_rx_restore: lock\n"));
+
 #if SHARED_SCRATCHPAD_DUMP    
     debug_P(DEBUG_SHM, PSTR("shared_memory_scratchpad_region_rx_restore: memory\n"));
     dump_memory(SHARED_MEM_RX_LOC_STATE - 0x10, SHARED_MEM_RX_LOC_STATE + SHARED_MEM_RX_LOC_SIZE);
@@ -232,7 +233,7 @@ void shared_memory_write(uint8_t cmd, uint8_t value)
 #if DO_SHM_SCRATCHPAD    
     if (scratchpad_locked_tx){ 
         debug_P(DEBUG_SHM, PSTR("shared_memory_write:  locked_tx\n"));
-        //return 1;
+        return 1;
     }
 #endif
     debug_P(DEBUG_SHM, PSTR("shared_memory_write:  0x%04x=0x%02x 0x%04x=0x%02x \n"),