Output min and max address on stderr
This commit is contained in:
parent
6141e26999
commit
3defa16553
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
import intelhex
|
import intelhex
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
|
@ -13,6 +14,10 @@ class Upload_Info (object) :
|
||||||
|
|
||||||
def read_hex (self) :
|
def read_hex (self) :
|
||||||
self.ihex = intelhex.IntelHex (self.filename)
|
self.ihex = intelhex.IntelHex (self.filename)
|
||||||
|
print \
|
||||||
|
( "0x%x 0x%x" % (self.ihex.minaddr (), self.ihex.maxaddr ())
|
||||||
|
, file = sys.stderr
|
||||||
|
)
|
||||||
# end def read_hex
|
# end def read_hex
|
||||||
|
|
||||||
def get_coap_int (self, path) :
|
def get_coap_int (self, path) :
|
||||||
|
|
Loading…
Reference in a new issue