Wipe out s_dHidActivity because it doesn't make a fucking sense the way it works. Use is_usb_active() instead.

This commit is contained in:
László Monda
2017-04-15 01:50:32 +02:00
parent 92683d3a65
commit 8ae8349d20
3 changed files with 6 additions and 25 deletions

View File

@@ -23,11 +23,8 @@ void handleUsbBusPalCommand()
{
g_commandData.state = kCommandState_CommandPhase;
while (1)
{
usb_msc_pump(g_peripherals);
while (1) {
bootloader_command_pump();
usb_msc_pump(g_peripherals);
}
}
@@ -377,7 +374,7 @@ status_t bootloader_command_pump()
status = usb_hid_packet_read(&g_peripherals[0], &g_commandData.packet, &g_commandData.packetLength,
kPacketType_Command);
//if (g_commandData.packet[12] == 0x64) TEST_LED_OFF();
if (status != kStatus_Success)
{
debug_printf("Error: readPacket returned status 0x%x\r\n", status);