tried to parse string functions using constexpr in C++

This commit is contained in:
Edward Emelianov
2026-03-08 01:16:10 +03:00
parent fb8b93b0fe
commit d39682b143
10 changed files with 215 additions and 14 deletions

View File

@@ -90,9 +90,11 @@ static const char* setCANspeed(char *buf){
return sOKn;
}
#include "hashparser.h"
static const char *cmd_parser(char *buf){
if(!buf || !*buf) return NULL;
if(strlen(buf) > 1){
chk(buf);
// "long" commands
char c = *buf++;
switch(c){