byte_offset data type change (#26)

uint8_t byte_offset range(0~255) can not be expressed when process data length is 255 or more.
pull/25/merge
DonBit 2017-08-30 17:18:39 +09:00 committed by nakarlsson
parent 9d54476330
commit deb4d3743f
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ static void ESC_read_pram (uint16_t address, void *buf, uint16_t len)
{
uint32_t value;
uint8_t * temp_buf = buf;
uint8_t byte_offset = 0;
uint16_t byte_offset = 0;
uint8_t fifo_cnt, first_byte_position, temp_len, data[4];
value = ESC_PRAM_CMD_ABORT;
@ -230,7 +230,7 @@ static void ESC_write_pram (uint16_t address, void *buf, uint16_t len)
{
uint32_t value;
uint8_t * temp_buf = buf;
uint8_t byte_offset = 0;
uint16_t byte_offset = 0;
uint8_t fifo_cnt, first_byte_position, temp_len, data[3];
value = ESC_PRAM_CMD_ABORT;