From dc07747199c2681db3e0c162888ee99c5fee901c Mon Sep 17 00:00:00 2001 From: Ruffalo-sunghwan Date: Mon, 23 May 2022 13:46:59 +0900 Subject: [PATCH] SITL : correct comment spelling --- libraries/SITL/SIM_JSON.cpp | 2 +- libraries/SITL/SIM_JSON_Master.cpp | 2 +- libraries/SITL/SIM_JSON_Master.h | 2 +- libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/SITL/SIM_JSON.cpp b/libraries/SITL/SIM_JSON.cpp index be64d053ed..0d37e7529a 100644 --- a/libraries/SITL/SIM_JSON.cpp +++ b/libraries/SITL/SIM_JSON.cpp @@ -255,7 +255,7 @@ void JSON::recv_fdm(const struct sitl_input &input) const uint32_t received_bitmask = parse_sensors((const char *)(p1+1)); if (received_bitmask == 0) { - // did not receve one of the mandatory fields + // did not receive one of the mandatory fields printf("Did not contain all mandatory fields\n"); return; } diff --git a/libraries/SITL/SIM_JSON_Master.cpp b/libraries/SITL/SIM_JSON_Master.cpp index 903c1ea6dc..3eb6f622a3 100644 --- a/libraries/SITL/SIM_JSON_Master.cpp +++ b/libraries/SITL/SIM_JSON_Master.cpp @@ -13,7 +13,7 @@ along with this program. If not, see . */ /* - Send and receve JSON backend data to alow a second AP instance to ride along + Send and receive JSON backend data to alow a second AP instance to ride along */ #include "SIM_JSON_Master.h" diff --git a/libraries/SITL/SIM_JSON_Master.h b/libraries/SITL/SIM_JSON_Master.h index 36c4d827b2..9a568f6ed1 100644 --- a/libraries/SITL/SIM_JSON_Master.h +++ b/libraries/SITL/SIM_JSON_Master.h @@ -13,7 +13,7 @@ along with this program. If not, see . */ /* - Send and receve JSON backend data to alow a second AP instance to ride along + Send and receive JSON backend data to alow a second AP instance to ride along */ #pragma once diff --git a/libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c b/libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c index 7c681ed7ea..ffafd33edb 100644 --- a/libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c +++ b/libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c @@ -725,7 +725,7 @@ void my_mexReturnArrayFromBuff(const int argno,io_buff *buff,const int line) break; if(n==maxelements) // If no new-line found inside limit... deleteelements=returnelements=maxelements; // ...return first part of splited line. - else if(n==returnelements) // If new-line not recived inside limit... + else if(n==returnelements) // If new-line not received inside limit... deleteelements=returnelements=0; // ...return empty string, and delete nothing. else if(n>0 && buff->ptr[n-1]=='\r') // If(*3) new-line, return line of char but not nl chars. deleteelements=2+(returnelements=n-1);