mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-22 09:41:00 +03:00
tried to parse string functions using constexpr in C++
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user