Posted 10 November 2012 - 08:38 AM
disk.getSerial() trys to call the function getSerial on the drive peripheral, but the drive peripheral doesn't have getSerial, it has getDiskID.
You could "patch" the issue by adding this to your startup file:
rom/apis/disk can be fixed basically the same way, though it can use the disk api's local isDrive function instead of calling peripheral.getType directly.
You could "patch" the issue by adding this to your startup file:
disk.getSerial=function(sSide)
if peripheral.getType(sSide)=="drive" then
return peripheral.call(sSide,"getDiskID")
end
return nil
end
rom/apis/disk can be fixed basically the same way, though it can use the disk api's local isDrive function instead of calling peripheral.getType directly.