mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-19 07:42:15 +00:00
Introduce tpms::Packet type.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user