Merge pull request #456 from mehlis/fix-ping

Fix ping
This commit is contained in:
Oleg Hahm
2014-01-09 13:43:47 -08:00
+2 -2
View File
@@ -65,7 +65,7 @@ void ping(radio_address_t addr, uint8_t channr)
print_failed();
}
hwtimer_wait(500000);
hwtimer_wait(HWTIMER_TICKS(500 * 1000));
}
}
@@ -75,7 +75,7 @@ void calc_rtt(void)
vtimer_now(&end);
timex_t result = vtimer_sub(end, start);
rtt = result.seconds + (float)result.microseconds / 100000;
rtt = result.seconds + (float)result.microseconds / (1000.0 * 1000.0);
}
void print_success(void)