Skip to content

Commit

Permalink
Away mode fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas-k committed Feb 28, 2016
1 parent c667310 commit d7960a2
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CecRemote/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/Source/bin/
/Source/obj/
/Source/CecRemoteMP2/obj/
/Source/CecRemoteMP2/bin/
/Tests/
*.dll
*.mpe1
*.suo
*_old*
5 changes: 2 additions & 3 deletions CecRemote/Source/CecRemote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public bool GetHome(out string strButtonText, out string strButtonImage,

public void Start()
{
Log.Info("CeCRemote: Version 0.9.5");
Log.Info("CeCRemote: Version 0.9.7");

_sleep = false;
_away = false;
Expand Down Expand Up @@ -259,7 +259,6 @@ public bool WndProc(ref Message msg)
{
if (_away && !_sleep)
{
_away = false;
Log.Info("CecRemote: PowerControl: System exiting away mode");
HandleResume(false);
}
Expand Down Expand Up @@ -300,7 +299,7 @@ public bool WndProc(ref Message msg)

private void HandleResume(bool automatic)
{
if (_sleep)
if (_sleep || _away)
{
_sleep = false;
_away = false;
Expand Down
10 changes: 5 additions & 5 deletions CecRemote/Source/CecRemote.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@
<ItemGroup>
<Reference Include="Common.Utils, Version=1.2.2.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\Common.Utils.dll</HintPath>
<HintPath>\\MEDIACENTER\Program Files (x86)\Team MediaPortal\MediaPortal\Common.Utils.dll</HintPath>
</Reference>
<Reference Include="Core, Version=1.2.2.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\Core.dll</HintPath>
<HintPath>\\MEDIACENTER\Program Files (x86)\Team MediaPortal\MediaPortal\Core.dll</HintPath>
</Reference>
<Reference Include="LibCecSharp, Version=2.1.1.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\LibCecSharp.dll</HintPath>
<HintPath>\\MEDIACENTER\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process\LibCecSharp\LibCecSharp.dll</HintPath>
</Reference>
<Reference Include="RemotePlugins">
<HintPath>.\RemotePlugins.dll</HintPath>
<HintPath>\\MEDIACENTER\Program Files (x86)\Team MediaPortal\MediaPortal\RemotePlugins.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -78,7 +78,7 @@
<Reference Include="System.Xml" />
<Reference Include="Utils, Version=1.2.2.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\Utils.dll</HintPath>
<HintPath>\\MEDIACENTER\Program Files (x86)\Team MediaPortal\MediaPortal\Utils.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
33 changes: 33 additions & 0 deletions CecRemote/Source/CecRemote.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CecRemote", "CecRemote.csproj", "{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Debug|Any CPU.ActiveCfg = Release|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Debug|Any CPU.Build.0 = Release|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Debug|x86.ActiveCfg = Debug|x86
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Release|Any CPU.Build.0 = Release|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Release|x86.ActiveCfg = Release|x86
{0957F20E-9D11-46F8-8307-E9BF4ABBFB0F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
4 changes: 2 additions & 2 deletions CecRemote/Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.5.0")]
[assembly: AssemblyFileVersion("0.9.5.0")]
[assembly: AssemblyVersion("0.9.7.0")]
[assembly: AssemblyFileVersion("0.9.7.0")]
4 changes: 4 additions & 0 deletions CecRemote/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CECREMOTE - Changelog

0.9.7

*fix When returning from away mode, sometimes devices are not powered on correctly.

0.9.6

*change Libcec version update 3.0.0
Expand Down

0 comments on commit d7960a2

Please sign in to comment.