瀏覽代碼

Fix for gcc10 teensy_lc eeprom build warning (#12587)

Joel Challis 4 年之前
父節點
當前提交
1cecd593c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tmk_core/common/chibios/eeprom_teensy.c

+ 1 - 1
tmk_core/common/chibios/eeprom_teensy.c

@@ -363,7 +363,7 @@ void eeprom_initialize(void) {
             return;
         }
     } while (p < (uint16_t *)SYMVAL(__eeprom_workarea_end__));
-    flashend = (uint32_t)((uint16_t *)SYMVAL(__eeprom_workarea_end__) - 1);
+    flashend = (uint32_t)(p - 1);
 }
 
 uint8_t eeprom_read_byte(const uint8_t *addr) {