fossasia / pslab-python

Python Library for PSLab Desktop: https://pslab.io
GNU General Public License v3.0
1.63k stars 225 forks source link

Add SerialHandler.get_long #230

Closed bessman closed 4 months ago

bessman commented 4 months ago

Summary by Sourcery

This pull request adds a new method, SerialHandler.send_long, to the SerialHandler class, enabling the sending of 4-byte data.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request adds a new method send_long to the SerialHandler class in the pslab/serial_handler.py file. The method is implemented using the existing _send method with a size parameter of 4, and it is wrapped using update_wrapper for consistency with other send methods.


Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.