Removed asyncHandler and creating new threads now once buffer-vector is complete

This commit is contained in:
2021-11-22 14:56:18 +01:00
parent f1e8069afd
commit a0ae919614
4 changed files with 13 additions and 28 deletions

View File

@@ -8,8 +8,8 @@
/// @param cmd is the command
/// @param handler is the handler(char*)-function
/// @return Return-code form command
int exec(const char* cmd, void (*handler)(char*) = nullptr){
const int buf_size = 256;
int exec(const char* cmd, void (*handler)(const char*) = nullptr){
const int buf_size = 512;
char buf[buf_size];
// Open execution-pipe