aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/MachineStatus
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-11-18 15:13:33 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-11-18 15:13:33 +0200
commitd50797ddb8c3d886d38a56a09dfe34540512e331 (patch)
treef41ec7f6c86c10a4446319dd08e9edaf19e87faf /Software/Visual_Studio/Tango.PMR/MachineStatus
parentfb9d511b7ec52f2343a1f16e8bba4ff8a757e7e4 (diff)
downloadTango-d50797ddb8c3d886d38a56a09dfe34540512e331.tar.gz
Tango-d50797ddb8c3d886d38a56a09dfe34540512e331.zip
Working on PPC Maintenance screen.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/MachineStatus')
-rw-r--r--Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs
index 007a72214..18024c6d7 100644
--- a/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs
+++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/IDSPackLevel.cs
@@ -24,7 +24,7 @@ namespace Tango.PMR.MachineStatus {
string.Concat(
"ChJJRFNQYWNrTGV2ZWwucHJvdG8SF1RhbmdvLlBNUi5NYWNoaW5lU3RhdHVz",
"IksKDElEU1BhY2tMZXZlbBINCgVJbmRleBgBIAEoBRIWCg5EaXNwZW5zZXJM",
- "ZXZlbBgCIAEoBRIUCgxNaWRUYW5rTGV2ZWwYAyABKAVCIwohY29tLnR3aW5l",
+ "ZXZlbBgCIAEoBRIUCgxNaWRUYW5rTGV2ZWwYAyABKAFCIwohY29tLnR3aW5l",
"LnRhbmdvLnBtci5tYWNoaW5lc3RhdHVzYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
@@ -94,9 +94,9 @@ namespace Tango.PMR.MachineStatus {
/// <summary>Field number for the "MidTankLevel" field.</summary>
public const int MidTankLevelFieldNumber = 3;
- private int midTankLevel_;
+ private double midTankLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MidTankLevel {
+ public double MidTankLevel {
get { return midTankLevel_; }
set {
midTankLevel_ = value;
@@ -127,7 +127,7 @@ namespace Tango.PMR.MachineStatus {
int hash = 1;
if (Index != 0) hash ^= Index.GetHashCode();
if (DispenserLevel != 0) hash ^= DispenserLevel.GetHashCode();
- if (MidTankLevel != 0) hash ^= MidTankLevel.GetHashCode();
+ if (MidTankLevel != 0D) hash ^= MidTankLevel.GetHashCode();
return hash;
}
@@ -146,9 +146,9 @@ namespace Tango.PMR.MachineStatus {
output.WriteRawTag(16);
output.WriteInt32(DispenserLevel);
}
- if (MidTankLevel != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(MidTankLevel);
+ if (MidTankLevel != 0D) {
+ output.WriteRawTag(25);
+ output.WriteDouble(MidTankLevel);
}
}
@@ -161,8 +161,8 @@ namespace Tango.PMR.MachineStatus {
if (DispenserLevel != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DispenserLevel);
}
- if (MidTankLevel != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(MidTankLevel);
+ if (MidTankLevel != 0D) {
+ size += 1 + 8;
}
return size;
}
@@ -178,7 +178,7 @@ namespace Tango.PMR.MachineStatus {
if (other.DispenserLevel != 0) {
DispenserLevel = other.DispenserLevel;
}
- if (other.MidTankLevel != 0) {
+ if (other.MidTankLevel != 0D) {
MidTankLevel = other.MidTankLevel;
}
}
@@ -199,8 +199,8 @@ namespace Tango.PMR.MachineStatus {
DispenserLevel = input.ReadInt32();
break;
}
- case 24: {
- MidTankLevel = input.ReadInt32();
+ case 25: {
+ MidTankLevel = input.ReadDouble();
break;
}
}