Set the protocol version in PixelMessage automagically

This commit is contained in:
Starbeamrainbowlabs 2017-03-02 19:05:06 +00:00
parent ad1bcba459
commit a2173bc0e3
3 changed files with 18 additions and 20 deletions

View file

@ -141,4 +141,3 @@ bool PixelBot::Tick()
return true;
}

View file

@ -1,10 +1,11 @@
#include "PixelMessage.h"
#include "PixelBot.h"
#include <Arduino.h>
PixelMessage::PixelMessage()
{
ProtocolVersion = PixelBot::PROTOCOL_VERSION;
}
PixelMessage::PixelMessage(byte* rawMessage) : PixelMessage()
{

View file

@ -1,5 +1,3 @@
#pragma once
#include <Arduino.h>