Skip to content

Commit f6750c2

Browse files
fixup! added preferences commands in command handler
1 parent 4cacb60 commit f6750c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

main/CommandHandler.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ int pref_begin(const uint8_t command[], uint8_t response[])
21032103
const uint8_t* command_ptr = &command[3];
21042104

21052105
if(nargs < 1 && nargs > 3) {
2106-
ESP_LOGE(PREF_TAG, "Prefrences begin wrong number of arguments");
2106+
ESP_LOGE(PREF_TAG, "Preferences begin wrong number of arguments");
21072107
response[4] = 255;
21082108
goto error;
21092109
}
@@ -2183,7 +2183,7 @@ int pref_remove(const uint8_t command[], uint8_t response[])
21832183
const uint8_t* command_ptr = &command[3];
21842184

21852185
if(nargs != 1) {
2186-
ESP_LOGE(PREF_TAG, "Prefrences remove wrong number of arguments");
2186+
ESP_LOGE(PREF_TAG, "Preferences remove wrong number of arguments");
21872187
response[4] = 255;
21882188
goto error;
21892189
}
@@ -2221,7 +2221,7 @@ int pref_len(const uint8_t command[], uint8_t response[])
22212221
uint32_t len = 0;
22222222

22232223
if(nargs != 1) {
2224-
ESP_LOGE(PREF_TAG, "Prefrences length wrong number of arguments");
2224+
ESP_LOGE(PREF_TAG, "Preferences length wrong number of arguments");
22252225
response[2] = 1;
22262226
response[3] = 1;
22272227
response[4] = 255;
@@ -2295,7 +2295,7 @@ int pref_put(const uint8_t command[], uint8_t response[])
22952295
size_t res = 0;
22962296

22972297
if(nargs != 3) {
2298-
ESP_LOGE(PREF_TAG, "Prefrences put wrong number of arguments");
2298+
ESP_LOGE(PREF_TAG, "Preferences put wrong number of arguments");
22992299
response[2] = 1;
23002300
response[3] = 1;
23012301
response[4] = 255;
@@ -2357,7 +2357,7 @@ int pref_put(const uint8_t command[], uint8_t response[])
23572357
break;
23582358
case PT_INVALID:
23592359
default:
2360-
ESP_LOGE(PREF_TAG, "Prefrences put invalid type");
2360+
ESP_LOGE(PREF_TAG, "Preferences put invalid type");
23612361
response[2] = 1;
23622362
response[3] = 1;
23632363
response[4] = 254;
@@ -2398,7 +2398,7 @@ int pref_get(const uint8_t command[], uint8_t response[])
23982398
uint32_t res=0;
23992399

24002400
if(nargs != 2) {
2401-
ESP_LOGE(PREF_TAG, "Prefrences put wrong number of arguments");
2401+
ESP_LOGE(PREF_TAG, "Preferences put wrong number of arguments");
24022402
response[2] = 1;
24032403
response[3] = 0;
24042404
return 5;
@@ -2457,7 +2457,7 @@ int pref_get(const uint8_t command[], uint8_t response[])
24572457
goto array_return;
24582458
case PT_INVALID:
24592459
default:
2460-
ESP_LOGE(PREF_TAG, "Prefrences put invalid type");
2460+
ESP_LOGE(PREF_TAG, "Preferences put invalid type");
24612461
response[2] = 1;
24622462
response[3] = 0;
24632463
return 5;

0 commit comments

Comments
 (0)