updated
This commit is contained in:
@@ -13,6 +13,11 @@ end
|
||||
local function startup()
|
||||
speakerDriver.startup()
|
||||
print("Testing Control Room Speakers...")
|
||||
local speakerList = peripheral.find("speaker")
|
||||
for index, value in ipairs(speakerList) do
|
||||
print("Speaker " .. index .. ": " .. value.getName())
|
||||
end
|
||||
|
||||
speakerDriver.playControlRoomAlarm(controlRoomSpeakers)
|
||||
end
|
||||
|
||||
|
||||
@@ -36,9 +36,7 @@ end
|
||||
|
||||
|
||||
local function playControlRoomAlarm(speakers)
|
||||
for _, speaker in ipairs(speakers) do
|
||||
playSound(speaker,"control_alarm")
|
||||
end
|
||||
playSound(speakers,"control_alarm")
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user