X-Git-Url: https://git.gag.com/?p=fw%2Fstlink;a=blobdiff_plain;f=src%2Fstlink-common.c;fp=src%2Fstlink-common.c;h=29ca794833698fd57bb874f1e0d6b10d2fd6e297;hp=a73801b169a036f428bee9792d4e94a6c4e24010;hb=4a2cd90c9c9b0b47b92616f4421d5938c9443671;hpb=ddebad96deee5960b35630aa4db1500003abe619 diff --git a/src/stlink-common.c b/src/stlink-common.c index a73801b..29ca794 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -841,7 +841,7 @@ on_error: return error; } -#define IS_STM32L(sl) ((sl)->chip_id == STM32_CHIPID_L1_MEDIUM || (sl)->chip_id == STM32_CHIPID_L1_HIGH) +#define IS_STM32L(sl) ((sl)->chip_id == STM32_CHIPID_L1_MEDIUM || (sl)->chip_id == STM32_CHIPID_L1_MEDIUM_PLUS || (sl)->chip_id == STM32_CHIPID_L1_HIGH) int stlink_fread(stlink_t* sl, const char* path, stm32_addr_t addr, size_t size) { /* read size bytes from addr to file */