mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-09 23:18:10 -07:00
11 lines
297 B
C
11 lines
297 B
C
#include "mf_plus_i.h"
|
|
|
|
bool mf_plus_version_parse(MfPlusVersion* data, const BitBuffer* buf) {
|
|
const bool can_parse = bit_buffer_get_size_bytes(buf) == sizeof(MfPlusVersion);
|
|
|
|
if(can_parse) {
|
|
bit_buffer_write_bytes(buf, data, sizeof(MfPlusVersion));
|
|
}
|
|
|
|
return can_parse;
|
|
} |