Module: Iot::Mkhex

Included in:
Iot
Defined in:
lib/iot/mkhex.rb

Instance Method Summary collapse

Instance Method Details

#mkhex(softdevicehex_path, projecthex_path) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/iot/mkhex.rb', line 3

def mkhex(softdevicehex_path, projecthex_path)
  str = File.read softdevicehex_path
  str.gsub!(":00000001FF", "")
  str.chomp!

  str << "\n"
  str << File.read(projecthex_path)

  File.write("combined.hex", str)
end