tools/flterm: replace int(a, 16) with int(a, 0) for --kernel-adr

This commit is contained in:
Florent Kermarrec 2015-08-18 15:47:09 +02:00
parent a9d40e790c
commit 6683485841
1 changed files with 1 additions and 1 deletions

View File

@ -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__":