HI mcore1976!
Function asciitohex is finishing string 2 chars after last written hex value. I am playing with your code and making some adjustements.
File: cc1101-tool-esp32-wroom.ino
Line: 103 hex_ptr[(2*i)+2] = '\0' ;
Correction: hex_ptr[(2*i)] = '\0' ;
Reason: variable i exits incremented from previous for bucle.
When code reaches line 103, i variable has the needed value to finish string fine adding \0, it is not needed to add 2 more char positions to it.
Regards!
Jps1x2
HI mcore1976!
Function asciitohex is finishing string 2 chars after last written hex value. I am playing with your code and making some adjustements.
File: cc1101-tool-esp32-wroom.ino
Line: 103 hex_ptr[(2*i)+2] = '\0' ;
Correction: hex_ptr[(2*i)] = '\0' ;
Reason: variable i exits incremented from previous for bucle.
When code reaches line 103, i variable has the needed value to finish string fine adding \0, it is not needed to add 2 more char positions to it.
Regards!
Jps1x2