-
Notifications
You must be signed in to change notification settings - Fork 93
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
base: master
Are you sure you want to change the base?
Conversation
Don't .begin() if baudrate is negative
There was a problem hiding this 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, |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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!
This version can change Serial by user. And update the examples.