summaryrefslogtreecommitdiffstats
path: root/converter/adb_usb/led.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-10-14 23:37:05 +0900
committertmk <nobody@nowhere>2013-10-14 23:37:05 +0900
commitc18c52f551545b46a28902c69730eefbdb75577d (patch)
tree03ef488ac04d24efc319aa429bfacbade3507c04 /converter/adb_usb/led.c
parent59ecced486618161ab18ea9a95dd51e1414fedb8 (diff)
Merge blargg's fix into adb.c
- <http://geekhack.org/index.php?topic=14290.msg1075201#msg1075201>
Diffstat (limited to 'converter/adb_usb/led.c')
-rw-r--r--converter/adb_usb/led.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/converter/adb_usb/led.c b/converter/adb_usb/led.c
index 0e162f379b..1e7911f942 100644
--- a/converter/adb_usb/led.c
+++ b/converter/adb_usb/led.c
@@ -15,12 +15,15 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "stdint.h"
+#include <stdint.h>
+#include <util/delay.h>
#include "adb.h"
#include "led.h"
void led_set(uint8_t usb_led)
{
+ // need a wait to send command without miss
+ _delay_ms(100);
adb_host_kbd_led(~usb_led);
}