Skip to content

Commit 1dae59d

Browse files
authored
backend: Fix a bug where pump stops when focus is over (#597)
I saw this by chance in the code. I couldn't find an open isssue in https://github.com/PlanktoScope/PlanktoScope but @chevreuill3000 did mention it in the past.
1 parent cd18641 commit 1dae59d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

device-backend/control/planktoscopehat/planktoscope/stepper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def run(self):
443443
'{"status":"Done"}',
444444
)
445445
self.focus_started = False
446-
self.pump_stepper.release()
446+
self.focus_stepper.release()
447447
time.sleep(0.01)
448448
logger.info("Shutting down the stepper process")
449449
self.actuator_client.client.publish("status/pump", '{"status":"Dead"}')

documentation/docs/community/contribute/tips-and-tricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ sudo dd bs=1M if=/dev/device status=progress conv=fdatasync | xz > sdcard.img.xz
142142

143143
```sh
144144
# restore an image file from your computer onto the SD card
145-
xzcat sdcard.img.xz | sudo dd bs=1M of=/dev/device status=progress
145+
xzcat sdcard.img.xz | sudo dd bs=1M of=/dev/device status=progress conv=fdatasync
146146
```
147147

148148
See also the operating guide [SD Card Cloning](../../operation/clone-sd.md).

0 commit comments

Comments
 (0)