From: Florent Kermarrec Date: Tue, 18 Aug 2015 13:47:09 +0000 (+0200) Subject: tools/flterm: replace int(a, 16) with int(a, 0) for --kernel-adr X-Git-Tag: 24jan2021_ls180~2141 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6683485841b4d5983af7c016f69f19384c412323;p=litex.git tools/flterm: replace int(a, 16) with int(a, 0) for --kernel-adr --- diff --git a/tools/flterm.py b/tools/flterm.py index a4cf6e44..2bebbe60 100644 --- a/tools/flterm.py +++ b/tools/flterm.py @@ -286,7 +286,7 @@ def _get_args(): parser.add_argument("--port", default="2", help="serial port") parser.add_argument("--speed", default=115200, help="serial baudrate") parser.add_argument("--kernel", default=None, help="kernel image") - parser.add_argument("--kernel-adr", type=lambda a: int(a, 16), default=0x40000000, help="kernel address") + parser.add_argument("--kernel-adr", type=lambda a: int(a, 0), default=0x40000000, help="kernel address") return parser.parse_args() if __name__ == "__main__":