Added missing line wrap and fixed labeling derp in flash.lua.

This commit is contained in:
Florian Nücke 2014-12-23 18:56:06 +01:00
parent aed09125c3
commit bd23253ff7

View File

@ -23,13 +23,13 @@ if not options.q then
repeat repeat
local response = io.read() local response = io.read()
until response and response:lower():sub(1, 1) == "y" until response and response:lower():sub(1, 1) == "y"
io.write("Beginning to flash EEPROM.") io.write("Beginning to flash EEPROM.\n")
end end
local eeprom = component.eeprom local eeprom = component.eeprom
if not options.q then if not options.q then
io.write("Beginning to flash EEPROM " .. eeprom.address .. ".\n") io.write("Flashing EEPROM " .. eeprom.address .. ".\n")
io.write("Please do NOT power down or restart your computer during this operation!\n") io.write("Please do NOT power down or restart your computer during this operation!\n")
end end
@ -43,7 +43,7 @@ if not options.q and not label then
io.write("Enter new label for this EEPROM. Leave input blank to leave the label unchanged.\n") io.write("Enter new label for this EEPROM. Leave input blank to leave the label unchanged.\n")
label = io.read() label = io.read()
end end
if label then if label and #label > 0 then then
eeprom.setLabel(label) eeprom.setLabel(label)
if not options.q then if not options.q then
io.write("Set label to '" .. eeprom.getLabel() .. "'.\n") io.write("Set label to '" .. eeprom.getLabel() .. "'.\n")