Commit db160047 authored by Karol Hennessy's avatar Karol Hennessy

add timestamp to logmsg

parent a9fa956e
Pipeline #757 failed
......@@ -258,7 +258,9 @@ void logMsg(String s)
CommsControl *comms = getGlobalComms();
Payload pl_send;
uint32_t tnow = static_cast<uint32_t>(millis());
logmsg_data_format log;
log.timestamp = tnow;
sprintf(log.message, "%50s", "");
sprintf(log.message, "%s", s.c_str() );
pl_send.setPayload(PRIORITY::DATA_ADDR, reinterpret_cast<void *>(&log), sizeof(log));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment