Permalink
Browse files

syntax error in previous commit fixed

  • Loading branch information...
1 parent 354a666 commit 096c0027088d4565abc66ab42ef7a8d60365f310 @felis committed Apr 24, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Usb.cpp
View
@@ -315,12 +315,12 @@ void USB::Task( void ) //USB state machine
tmpdata = regRd( rMODE ) | bmSOFKAENAB; //start SOF generation
regWr( rMODE, tmpdata );
usb_task_state = USB_ATTACHED_SUBSTATE_WAIT_SOF;
- delay = millis() + 20 //20ms wait after reset per USB spec
+ delay = millis() + 20; //20ms wait after reset per USB spec
}
break;
case USB_ATTACHED_SUBSTATE_WAIT_SOF:
if( regRd( rHIRQ ) & bmFRAMEIRQ ) { //when first SOF received we can continue
- if( delay < millis ) { //20ms passed
+ if( delay < millis() ) { //20ms passed
usb_task_state = USB_ATTACHED_SUBSTATE_GET_DEVICE_DESCRIPTOR_SIZE;
}
}

0 comments on commit 096c002

Please sign in to comment.