瀏覽代碼

Update eeprom.c

close hole for race condition
teensy4-core
Defragster 8 年之前
父節點
當前提交
8a577902fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/eeprom.c

+ 1
- 1
teensy3/eeprom.c 查看文件

@@ -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…
取消
儲存