Commit 186692c3 authored by captainwong's avatar captainwong

gg

parent e7d57b9a
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommandArguments>192.168.1.90 12345 2 12 861234567890 -1 30 10000 1</LocalDebuggerCommandArguments> <LocalDebuggerCommandArguments>192.168.1.90 12345 2 60 861234567890 -1 30 10000 1</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup> </PropertyGroup>
</Project> </Project>
\ No newline at end of file
...@@ -51,10 +51,14 @@ inline bool isValidZoneStrict(AdemcoZone zone) { ...@@ -51,10 +51,14 @@ inline bool isValidZoneStrict(AdemcoZone zone) {
return ZoneMin <= zone && zone < ZoneSentinel; return ZoneMin <= zone && zone < ZoneSentinel;
} }
//! 三防区主机GG范围 1~3 //! 三防区主机状态GG范围 1~3
constexpr AdemcoGG ggMin4ThreeSectionMachine = 1; constexpr AdemcoGG GGMin4ThreeSectionMachine = 1;
constexpr AdemcoGG ggMax4ThreeSectionMachine = 3; constexpr AdemcoGG GGMax4ThreeSectionMachine = 3;
//! 是否合法的三防区主机状态GG
inline bool isValidGG4ThreeSectionMachineStatus(AdemcoGG gg) {
return GGMin4ThreeSectionMachine <= gg && gg <= GGMax4ThreeSectionMachine;
}
//! 安定宝数据包 data 段 //! 安定宝数据包 data 段
struct AdemcoData struct AdemcoData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment