When I run this code in EEPROM it gives me one excess Filesystem, but I have no hard disks attached, wtf :/
dev_info = computer.getDeviceInfo()
__DrivesCount = 0
for k, v in pairs(dev_info) do
if v.class == "volume" or v.class == "disk" then
__DrivesCount = __DrivesCount + 1
writeScroll("Auto-Detecting SATA "..__DrivesCount.."..."..v.description)
end
end
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
When I run this code in EEPROM it gives me one excess Filesystem, but I have no hard disks attached, wtf :/
dev_info = computer.getDeviceInfo() __DrivesCount = 0 for k, v in pairs(dev_info) do if v.class == "volume" or v.class == "disk" then __DrivesCount = __DrivesCount + 1 writeScroll("Auto-Detecting SATA "..__DrivesCount.."..."..v.description) end end
Link to post
Share on other sites