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> <ProjectGuid>{8ACC347D-023C-4939-B371-C193EEA210F8}</ProjectGuid>
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>
<RootNamespace>ir_decoder</RootNamespace> <RootNamespace>ir_decoder</RootNamespace>
<WindowsTargetPlatformVersion>10.0.15063.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType> <ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140_xp</PlatformToolset> <PlatformToolset>v141_xp</PlatformToolset>
<CharacterSet>Unicode</CharacterSet> <CharacterSet>Unicode</CharacterSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <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)); 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; function_code = AC_FUNCTION_TEMPERATURE_UP;
break; break;
case 's': case 's':
case 'S': case 'S':
// temperature minus // temperature minus
ac_status.ac_temp = ((ac_status.ac_temp == AC_TEMP_16) ? AC_TEMP_16 : (ac_status.ac_temp - 1)); 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; function_code = AC_FUNCTION_TEMPERATURE_DOWN;
break; break;
case 'a': case 'a':
case 'A': case 'A':
// wind speed loop // 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; ac_status.ac_wind_speed = ac_status.ac_wind_speed % AC_WS_MAX;
function_code = AC_FUNCTION_WIND_SPEED; function_code = AC_FUNCTION_WIND_SPEED;
break; break;
case 'd': case 'd':
case 'D': case 'D':
// wind swing loop // wind swing loop
ac_status.ac_wind_dir = ((ac_status.ac_wind_dir == 0) ? AC_SWING_OFF : AC_SWING_ON); ac_status.ac_wind_dir = ((ac_status.ac_wind_dir == 0) ? AC_SWING_OFF : AC_SWING_ON);
function_code = AC_FUNCTION_WIND_SWING; function_code = AC_FUNCTION_WIND_SWING;
break; break;
case 'q': case 'q':
case 'Q': case 'Q':
++ac_status.ac_mode; ++ac_status.ac_mode;
ac_status.ac_mode = ac_status.ac_mode % AC_MODE_MAX; ac_status.ac_mode = ac_status.ac_mode % AC_MODE_MAX;
function_code = AC_FUNCTION_MODE; function_code = AC_FUNCTION_MODE;
break; break;
case '1': case '1':
// turn on // turn on
ac_status.ac_power = AC_POWER_ON; ac_status.ac_power = AC_POWER_ON;
function_code = AC_FUNCTION_POWER; function_code = AC_FUNCTION_POWER;
break; break;
case '2': case '2':
// turn off // turn off
ac_status.ac_power = AC_POWER_OFF; ac_status.ac_power = AC_POWER_OFF;
// FUNCTION MAX refers to power off // FUNCTION MAX refers to power off
// function_code = AC_FUNCTION_POWER; // function_code = AC_FUNCTION_POWER;
break; break;
case '3': case '3':
if (IR_DECODE_SUCCEEDED == get_supported_mode(&supported_mode)) if (IR_DECODE_SUCCEEDED == get_supported_mode(&supported_mode))
{ {