diff options
-rw-r--r-- | firmware/upload.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |