mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: Remove meaningless semicolons
This commit is contained in:
parent
a7108ed136
commit
6c83f2262d
|
@ -1936,7 +1936,7 @@ void emit_operators(struct userdata *data) {
|
||||||
fprintf(source, " %s *ud2 = check_%s(L, 2);\n", data->name, data->sanatized_name);
|
fprintf(source, " %s *ud2 = check_%s(L, 2);\n", data->name, data->sanatized_name);
|
||||||
// create a container for the result
|
// create a container for the result
|
||||||
fprintf(source, " new_%s(L);\n", data->sanatized_name);
|
fprintf(source, " new_%s(L);\n", data->sanatized_name);
|
||||||
fprintf(source, " *check_%s(L, -1) = *ud %c *ud2;;\n", data->sanatized_name, op_sym);
|
fprintf(source, " *check_%s(L, -1) = *ud %c *ud2;\n", data->sanatized_name, op_sym);
|
||||||
// return the first pointer
|
// return the first pointer
|
||||||
fprintf(source, " return 1;\n");
|
fprintf(source, " return 1;\n");
|
||||||
fprintf(source, "}\n\n");
|
fprintf(source, "}\n\n");
|
||||||
|
|
|
@ -320,7 +320,7 @@ static int lua_get_i2c_device(lua_State *L) {
|
||||||
|
|
||||||
static_assert(SCRIPTING_MAX_NUM_I2C_DEVICE >= 0, "There cannot be a negative number of I2C devices");
|
static_assert(SCRIPTING_MAX_NUM_I2C_DEVICE >= 0, "There cannot be a negative number of I2C devices");
|
||||||
if (AP::scripting()->num_i2c_devices >= SCRIPTING_MAX_NUM_I2C_DEVICE) {
|
if (AP::scripting()->num_i2c_devices >= SCRIPTING_MAX_NUM_I2C_DEVICE) {
|
||||||
return luaL_argerror(L, 1, "no i2c devices available");;
|
return luaL_argerror(L, 1, "no i2c devices available");
|
||||||
}
|
}
|
||||||
|
|
||||||
AP::scripting()->_i2c_dev[AP::scripting()->num_i2c_devices] = new AP_HAL::OwnPtr<AP_HAL::I2CDevice>;
|
AP::scripting()->_i2c_dev[AP::scripting()->num_i2c_devices] = new AP_HAL::OwnPtr<AP_HAL::I2CDevice>;
|
||||||
|
|
Loading…
Reference in New Issue