uint8_t byte_offset range(0~255) can not be expressed when process data length is 255 or more.
I have declared 200 UNSIGNED16 data types in Inputs and Outputs, respectively.
At this time, address is incorrectly reflected because of data type of byte_offset in ESC_write_pram() and ESC_read_pram() function.
The attached file(byte_offset.txt) is a log obtained by printing printf() from ESC_read_pram() as shown below.
uint8_t byte_offset range(0~255) can not be expressed when process data length is 255 or more.
I have declared 200 UNSIGNED16 data types in Inputs and Outputs, respectively. At this time, address is incorrectly reflected because of data type of byte_offset in ESC_write_pram() and ESC_read_pram() function.
The attached file(byte_offset.txt) is a log obtained by printing printf() from ESC_read_pram() as shown below.
byte_offset.txt
On line 64, the range of byte_offset is exceeded and address is initialized.