move load file to end of postactivation action

and change to use the IrPortController's loadFile method
add printing of available IR Commands in the loaded file.
This commit is contained in:
Andrew Welker
2020-08-18 16:34:24 -06:00
parent a30062db71
commit 468aff6e3f
2 changed files with 24 additions and 13 deletions

View File

@@ -134,12 +134,9 @@ namespace PepperDash.Essentials.Core
var port = irDev.IROutputPorts[portNum];
var filePath = Global.FilePathPrefix + "ir" + Global.DirectorySeparator + control["irFile"].Value<string>();
Debug.Console(1, "*************Attemting to load IR file: {0}***************", filePath);
port.LoadIRDriver(filePath);
return port;
}
public static IrOutputPortController GetIrOutputPortController(DeviceConfig config)