mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
telnet / escape - release
This commit is contained in:
@@ -240,12 +240,7 @@ void process_received_data(const char * buffer, size_t size){
|
|||||||
const char * c=buffer;
|
const char * c=buffer;
|
||||||
|
|
||||||
// scrub from any escape command
|
// scrub from any escape command
|
||||||
if(*c == '\e'){
|
if(*c == '\e') while (size && size-- && *c++ != '\n');
|
||||||
while(*(c++) != '\n'){
|
|
||||||
--size;
|
|
||||||
};
|
|
||||||
--size;
|
|
||||||
}
|
|
||||||
memcpy(command,c,size);
|
memcpy(command,c,size);
|
||||||
command[size]='\0';
|
command[size]='\0';
|
||||||
if(command[0]!='\r' && command[0]!='\n'){
|
if(command[0]!='\r' && command[0]!='\n'){
|
||||||
|
|||||||
Reference in New Issue
Block a user