mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Clean up legacy code
This commit is contained in:
@@ -39,14 +39,9 @@
|
||||
#include "updi_constants.h"
|
||||
#include "updi_state.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
void msleep(int tms)
|
||||
static void msleep(int tms)
|
||||
{
|
||||
struct timeval tv;
|
||||
tv.tv_sec = tms / 1000;
|
||||
tv.tv_usec = (tms % 1000) * 1000;
|
||||
select (0, NULL, NULL, NULL, &tv);
|
||||
usleep(tms * 1000);
|
||||
}
|
||||
|
||||
static int updi_physical_open(PROGRAMMER* pgm, int baudrate, unsigned long cflags)
|
||||
|
Reference in New Issue
Block a user