From 3defa165535c2c0ad99c194c4acaafd86bc7fa38 Mon Sep 17 00:00:00 2001 From: Ralf Schlatterbeck Date: Sun, 20 Aug 2017 19:41:34 +0200 Subject: [PATCH] Output min and max address on stderr --- examples/osd/ota-update/ota_uploader.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/osd/ota-update/ota_uploader.py b/examples/osd/ota-update/ota_uploader.py index f2d3e4682..eea1ec554 100755 --- a/examples/osd/ota-update/ota_uploader.py +++ b/examples/osd/ota-update/ota_uploader.py @@ -1,5 +1,6 @@ #!/usr/bin/python +from __future__ import print_function import sys import intelhex from subprocess import Popen @@ -13,6 +14,10 @@ class Upload_Info (object) : def read_hex (self) : self.ihex = intelhex.IntelHex (self.filename) + print \ + ( "0x%x 0x%x" % (self.ihex.minaddr (), self.ihex.maxaddr ()) + , file = sys.stderr + ) # end def read_hex def get_coap_int (self, path) :