Skip to content

Conversation

@danybd
Copy link
Contributor

@danybd danybd commented Mar 14, 2021

Fight controller based on silabs CP2104 was not working as function call cordova_serial.requestPermission() without specify the driver parameter uses the default driver "CdcAcmSerialDriver" which is the wrong when usb-uart chip is a CP2104. This chip requires the driver "Cp21xxSerialDriver". It fixes #2437

Copy link
Member

@haslinghuis haslinghuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also add the device to ./cordova/usb_device_filter.xml:

 <usb-device vendor-id="4292" product-id="60000" /> <!-- 0xea60: CP2102 and other CP210x single port devices -->

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@danybd
Copy link
Contributor Author

danybd commented Mar 14, 2021

Should also add the device to ./cordova/usb_device_filter.xml:

 <usb-device vendor-id="4292" product-id="60000" /> <!-- 0xea60: CP2102 and other CP210x single port devices -->

done

haslinghuis
haslinghuis previously approved these changes Mar 14, 2021
McGiverGim
McGiverGim previously approved these changes Mar 15, 2021
Copy link
Member

@McGiverGim McGiverGim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but it seems ok to me.

mikeller
mikeller previously approved these changes Mar 15, 2021
@asizon
Copy link
Member

asizon commented Jun 12, 2021

@danybd can you please Squash your commits into only one?

@asizon asizon added the Android label Jun 12, 2021
Fight controller based on silabs CP2104 was not working as function call cordova_serial.requestPermission() without specify the driver parameter uses the default driver "CdcAcmSerialDriver" which is the wrong when usb-uart chip is a CP2104. This chip requires the driver "Cp21xxSerialDriver"

fix code smells

fix the automatically reported code smells

'CdcAcmSerialDriver' as default driver

In order to not rely on the fallback driver in the driver library define 'CdcAcmSerialDriver' explicit locally

Co-authored-by: haslinghuis <[email protected]>

add CP2102 and other CP210x single port devices into usb device filter
@mikeller mikeller dismissed stale reviews from McGiverGim, haslinghuis, and themself via f4abe55 June 16, 2021 01:03
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@blckmn
Copy link
Member

blckmn commented Jun 16, 2021

AUTOMERGE: (PASS)

  • Github identifies PR as mergeable -> PASS
  • PR is not in draft -> PASS
  • Assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • 'Don't merge' label NOT found -> PASS
  • At least one 'RN:' label found -> PASS
  • 'Tested' label found -> PASS
  • assigned to an approver -> PASS
  • approver count at least three -> PASS

@blckmn blckmn merged commit 235cf5c into betaflight:master Jun 16, 2021
@haslinghuis
Copy link
Member

@danybd Thanks for your contribution. Sorry it took so long but we are in a process to automate some processes. Here is the release:

https://github.com/betaflight/betaflight-configurator-nightlies/releases/tag/v20210616.3059

@danybd
Copy link
Contributor Author

danybd commented Sep 9, 2021

@haslinghuis happy to make betaflight a little bit better :) Do you know guys when is the release 10.8.0 planned (if 10.8.0 is actually the next version)?

@danybd danybd deleted the patch-1 branch September 9, 2021 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flight controllers requiring CP2104 driver not working in android

6 participants