Fixed scope issue joining sources to EISC

This commit is contained in:
Heath Volmer
2018-09-04 15:39:58 -06:00
parent b295f931a3
commit 5ed8ff6dac

View File

@@ -260,7 +260,8 @@ namespace PepperDash.Essentials.Room.Cotija
foreach (var item in sourceJoinMap)
{
Parent.AddAction(string.Format("{0}{1}", prefix, item.Key), new PressAndHoldAction(b => EISC.SetBool(item.Value, b)));
var join = item.Value;
Parent.AddAction(string.Format("{0}{1}", prefix, item.Key), new PressAndHoldAction(b => EISC.SetBool(join, b)));
}
}