Skip to content

[checkbox-ce-oem] Add default value for rs485-settings in class Serial init (Bugfix)#1778

Merged
rickwu666666 merged 6 commits intomainfrom
add-default-rs485-setting-in-calss-init
Mar 11, 2025
Merged

[checkbox-ce-oem] Add default value for rs485-settings in class Serial init (Bugfix)#1778
rickwu666666 merged 6 commits intomainfrom
add-default-rs485-setting-in-calss-init

Conversation

@rickwu666666
Copy link
Copy Markdown
Contributor

Since this class might use for other python script directly. Add default value to prevent init failed while calling by other python script

Description

Resolved issues

Documentation

Tests

Since this class might use for other python script directly. Add default value to prevent init failed while calling by other python script
@rickwu666666 rickwu666666 added the ce-oem The PR only contains to the ce-oem provider under the contrib area label Mar 7, 2025
@rickwu666666 rickwu666666 changed the title [checkbox-ce-oem] Add default value for rs485-settings in class Serial init [checkbox-ce-oem] Add default value for rs485-settings in class Serial init (Bugfix) Mar 7, 2025
rickwu666666 and others added 2 commits March 7, 2025 15:51
Co-authored-by: stanley31huang <stanley.huang@canonical.com>
@rickwu666666 rickwu666666 requested a review from LiaoU3 March 7, 2025 08:36
Copy link
Copy Markdown
Collaborator

@stanley31huang stanley31huang left a comment

Choose a reason for hiding this comment

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

LGTM

@stanley31huang
Copy link
Copy Markdown
Collaborator

@LiaoU3 please take a look for this PR, since you're the author as well.

Copy link
Copy Markdown
Contributor

@LiaoU3 LiaoU3 left a comment

Choose a reason for hiding this comment

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

Thank you for adding default value for the script!

@rickwu666666 rickwu666666 merged commit 3248963 into main Mar 11, 2025
13 checks passed
@rickwu666666 rickwu666666 deleted the add-default-rs485-setting-in-calss-init branch March 11, 2025 02:53
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.63%. Comparing base (7817ae2) to head (f959d61).
Report is 123 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1778   +/-   ##
=======================================
  Coverage   49.63%   49.63%           
=======================================
  Files         377      377           
  Lines       40630    40630           
  Branches     6830     6830           
=======================================
  Hits        20168    20168           
  Misses      19740    19740           
  Partials      722      722           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

stanley31huang added a commit that referenced this pull request Mar 28, 2025
…l init (Bugfix) (#1778)

* Add default value for rs485-settings in class Serial init

Since this class might use for other python script directly. Add default value to prevent init failed while calling by other python script

* Change the logic of assign the default value

* Apply suggestions from code review

Co-authored-by: stanley31huang <stanley.huang@canonical.com>

* Unify the wording of the variable datasize

* fix tox error for python 3.8

* remove pycache folder

---------

Co-authored-by: stanley31huang <stanley.huang@canonical.com>
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
…l init (Bugfix) (#1778)

* Add default value for rs485-settings in class Serial init

Since this class might use for other python script directly. Add default value to prevent init failed while calling by other python script

* Change the logic of assign the default value

* Apply suggestions from code review

Co-authored-by: stanley31huang <stanley.huang@canonical.com>

* Unify the wording of the variable datasize

* fix tox error for python 3.8

* remove pycache folder

---------

Co-authored-by: stanley31huang <stanley.huang@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ce-oem The PR only contains to the ce-oem provider under the contrib area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants