Skip to content

Commit

Permalink
[Y-Cable][Credo] add theading locker to support thread-safe calling, …
Browse files Browse the repository at this point in the history
…add SKU check for download_firmware API. (#222)

* [Y-Cable][Credo] fix racing issue of VSC releated APIs

    The VSC protocol didn't allow user to send two or more vsc command to the module simultaneously,
    otherwise unexpected error might occurred.

    To avoid this issue, we can simply to update the download_firmware_status in the the following functions.
    This could help the helper to know vsc is in progress or not.

        * get_firmware_version()
        * download_firmware()
        * activate_firmware()
        * rollback_firmware()
This PR also does add SKU check for download_firmware API.
* [Y-Cable][Credo] add firmware ID checker to avoid update the wrong firmware

Signed-off-by: xinyu <xinyu0123@gmail.com>
  • Loading branch information
xinyulin committed Feb 15, 2022
1 parent ff3aa75 commit 931c6ea
Showing 1 changed file with 964 additions and 688 deletions.
Loading

0 comments on commit 931c6ea

Please sign in to comment.