From ca42a081ec3607eb3037e406828cedf8deb21245 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 12 Jun 2012 16:07:02 +0100 Subject: TPT: Add tmp2 support to old console 418bdf0892 diff --git a/src/cat/CommandInterface.cpp b/src/cat/CommandInterface.cpp index e8fc7b8..5b45449 100644 --- a/src/cat/CommandInterface.cpp +++ b/src/cat/CommandInterface.cpp @@ -52,12 +52,12 @@ int CommandInterface::GetPropertyOffset(std::string key_, FormatType & format) } else if (strcmp(key, "temp")==0){ offset = offsetof(Particle, temp); format = FormatFloat; - } else if (strcmp(key, "tmp")==0){ - offset = offsetof(Particle, tmp); - format = FormatInt; } else if (strcmp(key, "tmp2")==0){ offset = offsetof(Particle, tmp2); format = FormatInt; + } else if (strcmp(key, "tmp")==0){ + offset = offsetof(Particle, tmp); + format = FormatInt; } else if (strcmp(key, "vy")==0){ offset = offsetof(Particle, vy); format = FormatFloat; -- cgit v0.9.2-21-gd62e