DataFlash: support 64 bit TimeUS log dumping

This commit is contained in:
Andrew Tridgell 2015-05-27 11:50:56 +10:00
parent 1400d0155c
commit 2a22ae5404

View File

@ -335,6 +335,20 @@ void DataFlash_Class::_print_log_entry(uint8_t msg_type,
ofs += sizeof(v);
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': {
float v;
memcpy(&v, &pkt[ofs], sizeof(v));