Skip to content

Commit

Permalink
updated CM19Lib to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
genemars committed Dec 23, 2018
1 parent 1c8ad7c commit 3cfcc7d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MIG.HomeAutomation/MIG.HomeAutomation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="CM19Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\CM19Lib.1.0.4\lib\CM19Lib.dll</HintPath>
<HintPath>..\packages\CM19Lib.1.1.2\lib\CM19Lib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CommonMark, Version=0.1.0.0, Culture=neutral, PublicKeyToken=001ef8810438905d">
Expand Down
12 changes: 6 additions & 6 deletions MIG.HomeAutomation/X10.cs
Original file line number Diff line number Diff line change
Expand Up @@ -591,28 +591,28 @@ private void Cm19LibOnRfCommandReceived(object sender, RfCommandReceivedEventArg
var module = GetModuleByAddress(address, ModuleTypes.Sensor);
switch (args.Command)
{
case RfFunction.On:
case Function.On:
module.CustomData = 1D;
UpdateModuleLevel(module);
break;
case RfFunction.Off:
case Function.Off:
module.CustomData = 0D;
UpdateModuleLevel(module);
break;
case RfFunction.Bright:
case Function.Bright:
module.CustomData = module.CustomData + 1D/22D;
if (module.CustomData > 1) module.CustomData = 1D;
UpdateModuleLevel(module);
break;
case RfFunction.Dim:
case Function.Dim:
module.CustomData = module.CustomData - 1D/22D;
if (module.CustomData < 0) module.CustomData = 0D;
UpdateModuleLevel(module);
break;
case RfFunction.AllLightsOn:
case Function.AllLightsOn:
// TODO: not implemented
break;
case RfFunction.AllUnitsOff:
case Function.AllUnitsOff:
// TODO: not implemented
break;
}
Expand Down
2 changes: 1 addition & 1 deletion MIG.HomeAutomation/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CM19Lib" version="1.0.4" targetFramework="net45" />
<package id="CM19Lib" version="1.1.2" targetFramework="net45" />
<package id="CommonMark.NET" version="0.15.1" targetFramework="net45" />
<package id="LibUsbDotNet" version="2.2.8" targetFramework="net45" />
<package id="MIG" version="1.0.8" targetFramework="net45" />
Expand Down

0 comments on commit 3cfcc7d

Please sign in to comment.