diff --git a/app/env.d.ts b/app/env.d.ts index fe77695..8c7f1c8 100644 --- a/app/env.d.ts +++ b/app/env.d.ts @@ -1,8 +1,8 @@ -declare module "app-env" { - interface ENV { - VITE_USE_HOST_NAME: boolean; - } +declare module 'app-env' { + interface ENV { + VITE_USE_HOST_NAME: boolean + } - const appEnv: ENV; - export default appEnv; + const appEnv: ENV + export default appEnv } diff --git a/esp32/include/communication/comm_base.hpp b/esp32/include/communication/comm_base.hpp index 976247c..88af78a 100644 --- a/esp32/include/communication/comm_base.hpp +++ b/esp32/include/communication/comm_base.hpp @@ -44,7 +44,7 @@ class CommAdapterBase { size_t out_size; pb_get_encoded_size(&out_size, socket_message_Message_fields, &msg_); uint8_t *buffer = pb_heap_enc_buf; - if (out_size > sizeof(pb_heap_enc_buf)) { // It the encoded size exceeds our buffer size, we needs to malloc a buffer of a proper size + if (out_size > sizeof(pb_heap_enc_buf)) { // If the encoded size exceeds our buffer size, we needs to malloc a buffer of a proper size buffer = (uint8_t*) malloc(out_size); }