浏览代码

AmberTronic F7 Plus: Enable firmware support, and add board name to 'gw info'.

Keir Fraser 4 年之前
父节点
当前提交
3a67a696cf
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 3 2
      scripts/greaseweazle/tools/info.py
  2. 1 1
      src/stm32f7.c

+ 3 - 2
scripts/greaseweazle/tools/info.py

@@ -15,8 +15,9 @@ from greaseweazle.tools import util
 from greaseweazle import usb as USB
 from greaseweazle import version
 
-submodel_id = { 1: { 0: 'Basic USB-FS' },
-                7: { 0: 'Basic USB-FS' } }
+submodel_id = { 1: { 0: 'Basic' },
+                7: { 0: 'Basic',
+                     1: 'AmberTronic F7 Plus' } }
 
 speed_id = { 0: 'Full Speed (12 Mbit/s)',
              1: 'High Speed (480 Mbit/s)' }

+ 1 - 1
src/stm32f7.c

@@ -68,7 +68,7 @@ static void board_id_init(void)
 
     /* Panic if the ID is unrecognised. */
     gw_info.hw_submodel = id;
-    if (id != 0)
+    if (id > 1)
         early_fatal(2);
 }