From 7e7e4ebe8c43c3c31ad66d5d1dbb8233d2c0df49 Mon Sep 17 00:00:00 2001 From: Jenna Fox Date: Mon, 24 Sep 2012 02:08:19 +1000 Subject: the return of the version bits in #info in upload.rb --- firmware/upload.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/upload.rb') diff --git a/firmware/upload.rb b/firmware/upload.rb index 85e2c20..bb1a9c6 100644 --- a/firmware/upload.rb +++ b/firmware/upload.rb @@ -30,7 +30,9 @@ class MicroBoot @info = { flash_length: flash_length, page_size: page_size, - write_sleep: write_sleep.to_f / 1000.0 + write_sleep: write_sleep.to_f / 1000.0, + version: "#{@device.bcdDevice >> 8}.#{@device.bcdDevice & 0xFF}", + version_numeric: @device.bcdDevice } end @info -- cgit v1.2.3