nr_micro_shell icon indicating copy to clipboard operation
nr_micro_shell copied to clipboard

fix type error for queue type

Open xiaojian987 opened this issue 3 years ago • 1 comments

record to char will cause queue->store_num calc error when char to negative value @shell_his_queue_add_cmd

queue->store_num -= queue->queue[queue->fp] - queue->store_front;

Char -> short int -> unsigned short int, cause error er: 0xff -> 0xFFFF

xiaojian987 avatar Oct 25 '22 10:10 xiaojian987

https://github.com/RT-Thread/packages/issues/1618

supperthomas avatar Jun 01 '23 11:06 supperthomas