KrisKasprzak / EBYTE

Libraries to program and use UART-based EBYTE wireless data transceivers
244 stars 76 forks source link

Set Parameters Missing #12

Closed srcamarda closed 4 years ago

srcamarda commented 4 years ago

The functions to set the three parameters below are missing:

_OptionTrans _OptionPullup _OptionFEC

I added the functions in EBYTE.cpp / EBYTE.h and it worked perfectly for my use, but maybe you should add it to your code.

AB-informatica-service commented 4 years ago

Can you post the functions that you have write? Thanks

KrisKasprzak commented 4 years ago

I don't understand what you are asking.  Thanks, Kris Kasprzakkris.kasprzak@yahoo.com

On Saturday, February 29, 2020, 11:02:59 AM CST, AB-informatica-service <notifications@github.com> wrote:  

Can you post the functions that you have write? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

srcamarda commented 4 years ago

There's my modified files EBYTE.zip

If I remember well (not really sure), I simply added this on EBYTE.cpp:

void EBYTE::SetTrans(uint8_t val) { _OptionTrans = val; BuildOptionByte(); }

void EBYTE::SetPullup(uint8_t val) { _OptionPullup = val; BuildOptionByte(); }

void EBYTE::SetFEC(uint8_t val) { _OptionFEC = val; BuildOptionByte(); }

And this to EBYTE.h (in class EBYTE):

void SetTrans(uint8_t val); void SetPullup(uint8_t val); void SetFEC(uint8_t val);

The variables and significant info were already there, there just wasn't a way to modify them.

KrisKasprzak commented 4 years ago

these functions and more added