Skip to content

Commit

Permalink
AP_Scripting: add GCS Enable check around UART binding
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jan 12, 2024
1 parent 9bd3f26 commit 89fe797
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Scripting/lua_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ int AP_HAL__I2CDevice_read_registers(lua_State *L) {
return success;
}

#if HAL_GCS_ENABLED
int AP_HAL__UARTDriver_readstring(lua_State *L) {
binding_argcheck(L, 2);

Expand All @@ -661,6 +662,7 @@ int AP_HAL__UARTDriver_readstring(lua_State *L) {

return 1;
}
#endif

#if AP_SCRIPTING_CAN_SENSOR_ENABLED
int lua_get_CAN_device(lua_State *L) {
Expand Down

0 comments on commit 89fe797

Please sign in to comment.