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

This version can change Serial by user. #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

debenzhang
Copy link

This version can change Serial by user. And update the examples.

Copy link
Owner

@stephane stephane left a comment

Choose a reason for hiding this comment

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

You shouldn't remove the information about contributions.

@@ -230,9 +231,10 @@ static int receive(uint8_t *req, uint8_t _slave)
}


static void reply(uint16_t *tab_reg, uint16_t nb_reg, uint8_t *req,
uint8_t req_length, uint8_t _slave)
static uint32_t reply(uint16_t *tab_reg, uint16_t nb_reg, uint8_t *req,
Copy link
Owner

Choose a reason for hiding this comment

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

This change about return of reply should be in another PR

{
uint32_t backnum = 0;
Copy link
Owner

Choose a reason for hiding this comment

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

I don't find the backnum term explicit.

@@ -297,5 +306,11 @@ int ModbusinoSlave::loop(uint16_t *tab_reg, uint16_t nb_reg)
-1 if an undefined error has occured,
-2 for MODBUS_EXCEPTION_ILLEGAL_FUNCTION
etc */
return rc;
// if(rc > 0) {
Copy link
Owner

Choose a reason for hiding this comment

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

To remove.

@@ -30,11 +30,12 @@

class ModbusinoSlave {
public:
ModbusinoSlave(uint8_t slave);
void setup(long baud);
ModbusinoSlave();
Copy link
Owner

Choose a reason for hiding this comment

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

Why you change the API here?


1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
Copy link
Owner

Choose a reason for hiding this comment

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

Removing of information about contributing!

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.

3 participants