Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): use motion lock when updating firmware #14431

Merged

Conversation

ahiuchingau
Copy link
Contributor

@ahiuchingau ahiuchingau commented Feb 6, 2024

Overview

The 96-channel pipette is reported to drop after a firmware update in testing. This is because while the update is happening, the pipette cannot respond to any other CAN requests. If the hardware controller probes the network at this time, it would not be able to detect the presence of the 96-channel pipette and mistakenly lower the Z-axis motor current required to hold the pipette in place.

This PR fixes this by making sure the update firmware call block other motion tasks until all firmware has been updated.

@ahiuchingau ahiuchingau requested a review from a team as a code owner February 6, 2024 16:37
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7ceefb1) 68.14% compared to head (f65ed1e) 68.14%.
Report is 7 commits behind head on edge.

❗ Current head f65ed1e differs from pull request most recent head 6c205d5. Consider uploading reports for the commit 6c205d5 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #14431   +/-   ##
=======================================
  Coverage   68.14%   68.14%           
=======================================
  Files        2522     2522           
  Lines       72024    72024           
  Branches     9218     9218           
=======================================
  Hits        49078    49078           
  Misses      20757    20757           
  Partials     2189     2189           
Files Coverage Δ
api/src/opentrons/hardware_control/ot3api.py 80.00% <ø> (ø)

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ahiuchingau ahiuchingau merged commit be6a405 into edge Feb 6, 2024
20 checks passed
@ahiuchingau ahiuchingau deleted the RABR-21-dvt-2-abr-5-96-ch-dropped-when-update-completed branch February 6, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants