diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-30 13:01:21 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-30 13:01:21 +1100 |
commit | 220abca311063e736489adb675c18a25ff725932 (patch) | |
tree | 6697f741c8722ef8d8031e7ef6c9f634675ff12d /stmhal/storage.c | |
parent | 30beed119f9321c3202be8527d7c31acf873d9e8 (diff) | |
download | micropython-220abca311063e736489adb675c18a25ff725932.tar.gz micropython-220abca311063e736489adb675c18a25ff725932.zip |
stmhal: Use LED constants from PYBv4 onwards.
Diffstat (limited to 'stmhal/storage.c')
-rw-r--r-- | stmhal/storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/storage.c b/stmhal/storage.c index c1daad4c25..0a5b507394 100644 --- a/stmhal/storage.c +++ b/stmhal/storage.c @@ -149,7 +149,7 @@ static uint8_t *flash_cache_get_addr_for_write(uint32_t flash_addr) { flash_cache_sector_size = flash_sector_size; } flash_flags |= FLASH_FLAG_DIRTY; - led_state(PYB_LED_R1, 1); // indicate a dirty cache with LED on + led_state(PYB_LED_RED, 1); // indicate a dirty cache with LED on flash_tick_counter_last_write = HAL_GetTick(); return (uint8_t*)CACHE_MEM_START_ADDR + flash_addr - flash_sector_start; } @@ -261,7 +261,7 @@ void storage_irq_handler(void) { // clear the flash flags now that we have a clean cache flash_flags = 0; // indicate a clean cache with LED off - led_state(PYB_LED_R1, 0); + led_state(PYB_LED_RED, 0); } #endif |