search for: 500e6

Displaying 1 result from an estimated 1 matches for "500e6".

Did you mean: 5006
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...t) ser_set_speed(upsfd, device_path, mybaud); ser_send_char(upsfd, 0x1d); /* send ESC to take it out of menu */ - usleep(90000); + delay.tv_sec = 0; delay.tv_nsec = 90e6; + nanosleep(&delay, NULL); send_write_command(AUT, 4); - usleep(500000); + delay.tv_sec = 0; delay.tv_nsec = 500e6; + nanosleep(&delay, NULL); ret = command_sequence(&command, 1, answer); if (ret <= 0) { - usleep(500000); + nanosleep(&delay, NULL); /* 0.5 sec delay */ ret = command_sequence(&id_command, 1, answer); } @@ -296,12 +299,14 @@ void pw_comm_setup(const char *po...