diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:43:50 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:43:50 +0200 |
commit | 6a4b3ef0e72ee134b81a523ce41fd4c45f3b4429 (patch) | |
tree | c4cb9b524711238b162511f515d484df4052e3ab /fw/esp32/components/eos/at_cmd.c | |
parent | 03ec4d6158bd3c555b6c60b9e7476740464f19fa (diff) |
fixed wifi and cell
Diffstat (limited to 'fw/esp32/components/eos/at_cmd.c')
-rw-r--r-- | fw/esp32/components/eos/at_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/esp32/components/eos/at_cmd.c b/fw/esp32/components/eos/at_cmd.c index 82baa92..37de990 100644 --- a/fw/esp32/components/eos/at_cmd.c +++ b/fw/esp32/components/eos/at_cmd.c @@ -149,17 +149,17 @@ int at_expect_match(char *str_ok, char *str_err, char **buf, regmatch_t match[], return rv; } - ESP_LOGI(TAG, "Expect: %s", at_buf); + if (strlen(at_buf)) ESP_LOGI(TAG, "Expect: %s", at_buf); if (str_ok && (regexec(&re_ok, at_buf, match_size, match, 0) == 0)) { regfree(&re_ok); if (str_err) regfree(&re_err); - return 1; + return 0; } if (str_err && (regexec(&re_err, at_buf, match_size, match, 0) == 0)) { if (str_ok) regfree(&re_ok); regfree(&re_err); - return 0; + return 1; } at_urc_process(at_buf); |