DataFlash: support 64 bit TimeUS log dumping
This commit is contained in:
parent
1400d0155c
commit
2a22ae5404
@ -335,6 +335,20 @@ void DataFlash_Class::_print_log_entry(uint8_t msg_type,
|
|||||||
ofs += sizeof(v);
|
ofs += sizeof(v);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'q': {
|
||||||
|
int64_t v;
|
||||||
|
memcpy(&v, &pkt[ofs], sizeof(v));
|
||||||
|
port->printf_P(PSTR("%lld"), (long long)v);
|
||||||
|
ofs += sizeof(v);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'Q': {
|
||||||
|
uint64_t v;
|
||||||
|
memcpy(&v, &pkt[ofs], sizeof(v));
|
||||||
|
port->printf_P(PSTR("%llu"), (unsigned long long)v);
|
||||||
|
ofs += sizeof(v);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 'f': {
|
case 'f': {
|
||||||
float v;
|
float v;
|
||||||
memcpy(&v, &pkt[ofs], sizeof(v));
|
memcpy(&v, &pkt[ofs], sizeof(v));
|
||||||
|
Loading…
Reference in New Issue
Block a user