5959/* Constants & Defines */
6060
6161// UART Read Task Stack Size
62- static const uint16_t SIMPLECLI_TASK_STACK = 2048 ;
62+ static const uint16_t MINBASECLI_TASK_STACK = 2048 ;
6363
6464// Logging Tag
6565static const char TAG[] = " MinBaseCLI" ;
@@ -120,7 +120,7 @@ uint8_t MINBASECLI_ESPIDF::hal_iface_read()
120120
121121 // Return read bytes
122122 this ->th_rx_read_tail = (this ->th_rx_read_tail + 1 ) %
123- SIMPLECLI_MAX_READ_SIZE ;
123+ MINBASECLI_MAX_READ_SIZE ;
124124 return th_rx_read[this ->th_rx_read_tail ];
125125}
126126
@@ -143,7 +143,7 @@ void MINBASECLI_ESPIDF::hal_iface_print(const uint8_t data_byte)
143143 */
144144bool MINBASECLI_ESPIDF::launch_stdin_read_thread ()
145145{
146- if (xTaskCreate (&th_read_stdin, " th_read_stdin" , SIMPLECLI_TASK_STACK ,
146+ if (xTaskCreate (&th_read_stdin, " th_read_stdin" , MINBASECLI_TASK_STACK ,
147147 (void *)(this ), tskIDLE_PRIORITY+5 , NULL ) != pdPASS)
148148 {
149149 ESP_LOGE (TAG, " Fail to create STDIN read thread" );
@@ -230,7 +230,7 @@ void th_read_stdin(void* arg)
230230 ch = getc (stdin);
231231 if (ch != EOF)
232232 {
233- _this->th_rx_read_head = (_this->th_rx_read_head + 1 ) % SIMPLECLI_MAX_READ_SIZE ;
233+ _this->th_rx_read_head = (_this->th_rx_read_head + 1 ) % MINBASECLI_MAX_READ_SIZE ;
234234 _this->th_rx_read [_this->th_rx_read_head ] = ch;
235235 }
236236 else
0 commit comments