{ .vendor = "00:12:6f:", 1 }, /* Rayson */
{ .vendor = "8c:de:52:", 6 }, /* ISSC */
{ .vendor = "d8:80:39:", 6 }, /* Microchip */
+ { .vendor = "04:91:62:", 6 }, /* New Microchip */
};
#define NUM_BT_VENDOR_MAP (sizeof altos_bt_vendor_map / sizeof altos_bt_vendor_map[0])
-#define BT_PORT_DEFAULT 1
static inline int
ao_tolower(int c) {
break;
}
}
- return BT_PORT_DEFAULT;
+ return 0;
}
-#include <time.h>
-
PUBLIC void
altos_free(struct altos_file *file)
{
int i;
altos_close(file);
- for (i = 0; i < 10 && file->busy; i++) {
- struct timespec delay = { .tv_sec = 1, .tv_nsec = 0 };
- nanosleep(&delay, NULL);
- }
+ for (i = 0; i < 10 && file->busy; i++)
+ altos_pause_one_second();
free(file);
}