]> git.zerfleddert.de Git - fnordlicht-mini/blame - firmware/tests/enter_application.rb
very crude tool to fix eeprom checksum in binary
[fnordlicht-mini] / firmware / tests / enter_application.rb
CommitLineData
ec1bef8e 1#!/usr/bin/env ruby
2
3$:.unshift(File.dirname(__FILE__)+"/lib")
4
5require 'fnordlicht'
6require 'serialport'
7
8include Fnordlicht
9
10$dev = SerialPort.new("/dev/ttyUSB0", 19200)
11
12if ARGV.length != 1
13 $stderr.puts "USAGE: #{$0} <addr>"
14 exit 1
15end
16
17puts "sending sync sequence"
18sync()
19
20puts "starting application"
21boot_enter_application(ARGV.shift.to_i)
Impressum, Datenschutz