diff --git a/station_broadcast.lua b/station_broadcast.lua index 0744095..df7f45d 100644 --- a/station_broadcast.lua +++ b/station_broadcast.lua @@ -1,6 +1,6 @@ -- 1. Configuration & Constants -local APP_VERSION_TEXT = "v1.0.107" +local APP_VERSION_TEXT = "v1.0.108" local CONFIG = { CLOUD_URL = "ws://stabadmin.fse-media.group", @@ -69,6 +69,11 @@ local State = { -- 3. Peripherals Setup local Peripherals = {} +local Utils = {} +local Display = {} +local Audio = {} +local Network = {} +local Main = {} function Peripherals.isTrainStationPeripheral(name) if not name then @@ -190,7 +195,6 @@ end -- 4. Utility Functions -local Utils = {} function Utils.log(level, message) if level == "DEBUG" and not CONFIG.DEBUG then return end @@ -1106,7 +1110,6 @@ end -- 5. Audio System -local Audio = {} function Audio.createStream() local chunks = {} @@ -2718,7 +2721,6 @@ end -- ============================================================================ -- 6. Network System -- ============================================================================ -local Network = {} function Network.connect() if State.ws then return end @@ -3080,7 +3082,6 @@ end -- 7. Display System -local Display = {} function Display.render() local mon = Peripherals.primaryMonitor @@ -3490,7 +3491,7 @@ end -- 8. Main Logic -local Main = {} + State.announcedApproaching = {} State.announcedAlerts = {} State.pendingAlerts = {}