Browse Source

Update eeprom.c

close hole for race condition
main
Defragster 8 years ago
parent
commit
8a577902fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/eeprom.c

+ 1
- 1
teensy3/eeprom.c View File

@@ -203,8 +203,8 @@ void c_enable_irq( void ){
}
void c_disable_irq( void ){
if ( !__get_primask() ) { // Returns 0 if they are enabled, or non-zero if disabled
c_intrestore = 1;
__disable_irq( );
c_intrestore = 1;
}
}
static volatile uint8_t restore_hsrun = 0;

Loading…
Cancel
Save