Reverted commit below as the cc65 bug in question is fixed.

Rearranged some expressions to avoid triggering a cc65 bug. (reverse-merged from commit 7134da0915)
This commit is contained in:
Oliver Schmidt 2013-10-08 22:42:41 +02:00
parent c6474cc8bc
commit 2316c6b461
4 changed files with 10 additions and 10 deletions

View file

@ -145,9 +145,9 @@ recv_mesh(struct mesh_conn *c, const rimeaddr_t *from, uint8_t hops)
pingrecvtime = rtimer_arch_now();
#endif
snprintf(buf, sizeof(buf), "%lu ms (%lu + %lu), %d hops.",
((pingrecvtime - ping.pingtime) * 1000L) / RTIMER_ARCH_SECOND,
((ping.pongtime - ping.pingtime) * 1000L) / RTIMER_ARCH_SECOND,
((pingrecvtime - ping.pongtime) * 1000L) / RTIMER_ARCH_SECOND,
(1000L * (pingrecvtime - ping.pingtime)) / RTIMER_ARCH_SECOND,
(1000L * (ping.pongtime - ping.pingtime)) / RTIMER_ARCH_SECOND,
(1000L * (pingrecvtime - ping.pongtime)) / RTIMER_ARCH_SECOND,
hops);
shell_output_str(&rime_ping_command,