format with uncrustify
This commit is contained in:
@ -15,13 +15,13 @@ static bool timespec_spec_parse(const char *spec, struct mgos_timespec_spec *out
|
||||
uint8_t start_h = 0, start_m = 0, start_s = 0;
|
||||
uint8_t stop_h = 0, stop_m = 0, stop_s = 0;
|
||||
char * p;
|
||||
int i;
|
||||
int i;
|
||||
|
||||
if (!spec || strlen(spec) == 0) {
|
||||
LOG(LL_ERROR, ("spec cannot be NULL or empty"));
|
||||
return false;
|
||||
}
|
||||
for (i = 1; i < (int) strlen(spec); i++) {
|
||||
for (i = 1; i < (int)strlen(spec); i++) {
|
||||
if (spec[i] != ':' && spec[i] != '-' && !(spec[i] >= '0' && spec[i] <= '9')) {
|
||||
LOG(LL_ERROR, ("spec='%s': illegal chars, only want [:\\-0-9]", spec));
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user