Browse Source

DataFlash: support 64 bit TimeUS log dumping

master
Andrew Tridgell 10 years ago
parent
commit
2a22ae5404
  1. 14
      libraries/DataFlash/LogFile.cpp

14
libraries/DataFlash/LogFile.cpp

@ -335,6 +335,20 @@ void DataFlash_Class::_print_log_entry(uint8_t msg_type, @@ -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));

Loading…
Cancel
Save