mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-06 08:45:01 -04:00
Introduce tpms::Packet type.
This commit is contained in:
parent
be328c5f38
commit
32818ee9ab
2 changed files with 10 additions and 4 deletions
|
@ -28,9 +28,15 @@
|
|||
#include "manchester.hpp"
|
||||
#include "log_file.hpp"
|
||||
|
||||
namespace tpms {
|
||||
|
||||
using Packet = ManchesterFormatted;
|
||||
|
||||
} /* namespace tpms */
|
||||
|
||||
class TPMSModel {
|
||||
public:
|
||||
ManchesterFormatted on_packet(const TPMSPacketMessage& message);
|
||||
tpms::Packet on_packet(const TPMSPacketMessage& message);
|
||||
|
||||
private:
|
||||
LogFile log_file { "tpms.txt" };
|
||||
|
@ -50,7 +56,7 @@ private:
|
|||
|
||||
Console console;
|
||||
|
||||
void log(const ManchesterFormatted& formatted);
|
||||
void log(const tpms::Packet& formatted);
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue