From: Spencer Oliver Date: Thu, 19 Apr 2012 13:04:46 +0000 (+0100) Subject: flash: update stm32f0x version info X-Git-Tag: v0.6.0-rc1~120 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cc733ae312dd79471f4cc5116f675116d5176b3;p=openocd flash: update stm32f0x version info Change-Id: Iab0962021e6243d1df3e7c647654a51b4bf50d72 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/578 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin --- diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index e9c2fb97..9a3d459b 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -1176,7 +1176,11 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size) switch (device_id >> 16) { case 0x1000: - snprintf(buf, buf_size, "A"); + snprintf(buf, buf_size, "1.0"); + break; + + case 0x2000: + snprintf(buf, buf_size, "2.0"); break; default: