浏览代码

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;

正在加载...
取消
保存