Rename timestampMultiplier to timestampResolution

We've also decided to leave it out of the message structures since, for most uses going forward, it will not be needed.

Anyone who wants the timestamp resolution can always make the inexpensive device call to get it.
This commit is contained in:
Paul Hollinsky
2019-05-06 12:32:04 -04:00
parent d1cd34fb24
commit 7cf0ec5f4f
16 changed files with 64 additions and 39 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ public:
Decoder(device_errorhandler_t err) : err(err) {}
bool decode(std::shared_ptr<Message>& result, const std::shared_ptr<Packet>& packet);
int timestampMultiplier = 25;
uint16_t timestampResolution = 25;
private:
device_errorhandler_t err;
@@ -12,7 +12,6 @@ public:
Network network;
std::vector<uint8_t> data;
uint64_t timestamp = 0;
int timestampMultiplier = 0;
uint16_t description = 0;
bool transmitted = false;
bool error = false;
@@ -108,8 +108,7 @@ typedef struct {
uint8_t header[4];
uint16_t netid;
uint8_t type;
uint8_t reserved[15];
uint16_t timestampMultiplier;
uint8_t reserved[17];
} neomessage_t; // 72 bytes total
// Any time you add another neomessage_*_t type, make sure to add it to the static_asserts below!