#CONTROLLABLE Corrected parameter omissions

This commit is contained in:
Applevangelist 2024-10-31 18:16:02 +01:00
parent d51e761b26
commit b72124c0d9

View File

@ -960,7 +960,7 @@ function CONTROLLABLE:CommandSetFrequency( Frequency, Modulation, Power, Delay )
} }
if Delay and Delay > 0 then if Delay and Delay > 0 then
SCHEDULER:New( nil, self.CommandSetFrequency, { self, Frequency, Modulation, Power } ) SCHEDULER:New( nil, self.CommandSetFrequency, { self, Frequency, Modulation, Power },Delay )
else else
self:SetCommand( CommandSetFrequency ) self:SetCommand( CommandSetFrequency )
end end
@ -987,7 +987,7 @@ function CONTROLLABLE:CommandSetFrequencyForUnit(Frequency,Modulation,Power,Unit
}, },
} }
if Delay and Delay>0 then if Delay and Delay>0 then
SCHEDULER:New(nil,self.CommandSetFrequencyForUnit,{self,Frequency,Modulation,Power,UnitID}) SCHEDULER:New(nil,self.CommandSetFrequencyForUnit,{self,Frequency,Modulation,Power,UnitID},Delay)
else else
self:SetCommand(CommandSetFrequencyForUnit) self:SetCommand(CommandSetFrequencyForUnit)
end end