updated window splatform make configure

This commit is contained in:
strawmanbobi
2018-04-29 13:35:10 +08:00
parent 44a400b027
commit 66262cde68
2 changed files with 9 additions and 2 deletions

View File

@@ -22,13 +22,13 @@
<ProjectGuid>{8ACC347D-023C-4939-B371-C193EEA210F8}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>ir_decoder</RootNamespace>
<WindowsTargetPlatformVersion>10.0.15063.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140_xp</PlatformToolset>
<PlatformToolset>v141_xp</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

View File

@@ -68,12 +68,14 @@ INT8 decode_as_ac(char *file_name)
ac_status.ac_temp = ((ac_status.ac_temp == AC_TEMP_30) ? AC_TEMP_30 : (ac_status.ac_temp + 1));
function_code = AC_FUNCTION_TEMPERATURE_UP;
break;
case 's':
case 'S':
// temperature minus
ac_status.ac_temp = ((ac_status.ac_temp == AC_TEMP_16) ? AC_TEMP_16 : (ac_status.ac_temp - 1));
function_code = AC_FUNCTION_TEMPERATURE_DOWN;
break;
case 'a':
case 'A':
// wind speed loop
@@ -81,29 +83,34 @@ INT8 decode_as_ac(char *file_name)
ac_status.ac_wind_speed = ac_status.ac_wind_speed % AC_WS_MAX;
function_code = AC_FUNCTION_WIND_SPEED;
break;
case 'd':
case 'D':
// wind swing loop
ac_status.ac_wind_dir = ((ac_status.ac_wind_dir == 0) ? AC_SWING_OFF : AC_SWING_ON);
function_code = AC_FUNCTION_WIND_SWING;
break;
case 'q':
case 'Q':
++ac_status.ac_mode;
ac_status.ac_mode = ac_status.ac_mode % AC_MODE_MAX;
function_code = AC_FUNCTION_MODE;
break;
case '1':
// turn on
ac_status.ac_power = AC_POWER_ON;
function_code = AC_FUNCTION_POWER;
break;
case '2':
// turn off
ac_status.ac_power = AC_POWER_OFF;
// FUNCTION MAX refers to power off
// function_code = AC_FUNCTION_POWER;
break;
case '3':
if (IR_DECODE_SUCCEEDED == get_supported_mode(&supported_mode))
{