SITL : correct comment spelling

This commit is contained in:
Ruffalo-sunghwan 2022-05-23 13:46:59 +09:00 committed by Randy Mackay
parent e0d14d900a
commit dc07747199
4 changed files with 4 additions and 4 deletions

View File

@ -255,7 +255,7 @@ void JSON::recv_fdm(const struct sitl_input &input)
const uint32_t received_bitmask = parse_sensors((const char *)(p1+1)); const uint32_t received_bitmask = parse_sensors((const char *)(p1+1));
if (received_bitmask == 0) { 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"); printf("Did not contain all mandatory fields\n");
return; return;
} }

View File

@ -13,7 +13,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
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" #include "SIM_JSON_Master.h"

View File

@ -13,7 +13,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* /*
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 #pragma once

View File

@ -725,7 +725,7 @@ void my_mexReturnArrayFromBuff(const int argno,io_buff *buff,const int line)
break; break;
if(n==maxelements) // If no new-line found inside limit... if(n==maxelements) // If no new-line found inside limit...
deleteelements=returnelements=maxelements; // ...return first part of splited line. 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. 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. 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); deleteelements=2+(returnelements=n-1);