diff options
author | Keith Packard <keithp@keithp.com> | 2013-08-28 22:52:58 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-08-28 22:52:58 -0600 |
commit | dcc51bb18985c24fa35bce0dd42ea3d847b960bf (patch) | |
tree | 652c06c900b01b3c43f674e0f121109cc54b1120 /src/cc1111/ao_usb.c | |
parent | 7c82acc1c1c5b7b4da7c7ecb3b2fd90140e4c703 (diff) | |
parent | a73b02518fcbc9fc0807ed8e141d3a06e8ad8214 (diff) |
Merge remote-tracking branch 'origin/telemini'
Signed-off-by: Keith Packard <keithp@keithp.com>
Conflicts:
src/core/ao_telemetry.c
src/core/ao_telemetry.h
Added both Mini and Metrum telemetry defines
Diffstat (limited to 'src/cc1111/ao_usb.c')
-rw-r--r-- | src/cc1111/ao_usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cc1111/ao_usb.c b/src/cc1111/ao_usb.c index a655d1be..b0ab409d 100644 --- a/src/cc1111/ao_usb.c +++ b/src/cc1111/ao_usb.c @@ -201,6 +201,11 @@ ao_usb_ep0_setup(void) ao_usb_ep0_queue_byte(0); break; case AO_USB_REQ_SET_ADDRESS: +#if USB_FORCE_FLIGHT_IDLE + /* Go to idle mode if USB is connected + */ + ao_flight_force_idle = 1; +#endif ao_usb_set_address(ao_usb_setup.value); break; case AO_USB_REQ_GET_DESCRIPTOR: |