From 9e7caba0893fe6bc75a423b6af5956538a9fe800 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Tue, 21 May 2024 06:41:28 +0200 Subject: [PATCH] Update Message.lua (#2130) (#2131) the Label and port were not being pulled from MSRS Config, causing them to default to "MESSAGE" and 5002 when calling the MESSAGE.SetMSRS() function with no params Co-authored-by: Mike Young <117502908+DarthZyll@users.noreply.github.com> --- Moose Development/Moose/Core/Message.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Core/Message.lua b/Moose Development/Moose/Core/Message.lua index 6c15c5dc3..0a3defdec 100644 --- a/Moose Development/Moose/Core/Message.lua +++ b/Moose Development/Moose/Core/Message.lua @@ -516,10 +516,10 @@ function MESSAGE.SetMSRS(PathToSRS,Port,PathToCredentials,Frequency,Modulation,G end _MESSAGESRS.label = Label or MSRS.Label or "MESSAGE" - _MESSAGESRS.MSRS:SetLabel(Label or "MESSAGE") + _MESSAGESRS.MSRS:SetLabel(_MESSAGESRS.label) _MESSAGESRS.port = Port or MSRS.port or 5002 - _MESSAGESRS.MSRS:SetPort(Port or 5002) + _MESSAGESRS.MSRS:SetPort(_MESSAGESRS.port) _MESSAGESRS.volume = Volume or MSRS.volume or 1 _MESSAGESRS.MSRS:SetVolume(_MESSAGESRS.volume)