From eca486388826ee4c6adbb35213871393861438ce Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Mon, 2 Sep 2019 11:21:11 +0800 Subject: [PATCH] =?UTF-8?q?[bsp][qemu-vexpress-a9]=E4=BF=AE=E5=A4=8Dpy3?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E7=BC=96=E8=AF=91=EF=BC=8C=E6=95=B4?= =?UTF-8?q?=E6=95=B0=E7=9B=B8=E9=99=A4=E4=B8=BA=E6=B5=AE=E7=82=B9=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/qemu-vexpress-a9/rtconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/qemu-vexpress-a9/rtconfig.py b/bsp/qemu-vexpress-a9/rtconfig.py index abec45ac35..49727b6d20 100644 --- a/bsp/qemu-vexpress-a9/rtconfig.py +++ b/bsp/qemu-vexpress-a9/rtconfig.py @@ -3,7 +3,7 @@ import os import uuid def get_mac_address(): mac=uuid.UUID(int = uuid.getnode()).hex[-12:] - return "#define AUTOMAC".join([str(e/2 + 1) + ' 0x' + mac[e:e+2] + '\n' for e in range(5,11,2)]) + return "#define AUTOMAC".join([str(int(e/2) + 1) + ' 0x' + mac[e:e+2] + '\n' for e in range(5,11,2)]) header = ''' #ifndef __MAC_AUTO_GENERATE_H__ -- GitLab