mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
AP_Scripting: use get_uint32 instead of luaL_checkinteger
This commit is contained in:
1 parent
3f7892fc79
commit
06b5400d0b
3 files changed
+10
-16
No files matched your search
@@ -347,7 +347,7 @@ void AP_Scripting::handle_message(const mavlink_message_t &msg, const mavlink_ch
|
||||
|
||||
WITH_SEMAPHORE(mavlink_data.sem);
|
||||
for (uint16_t i = 0; i < mavlink_data.accept_msg_ids_size; i++) {
|
||||
if (mavlink_data.accept_msg_ids[i] == -1) {
|
||||
if (mavlink_data.accept_msg_ids[i] == UINT32_MAX) {
|
||||
return;
|
||||
}
|
||||
if (mavlink_data.accept_msg_ids[i] == msg.msgid) {
|
||||
|
||||
Reference in new issue
Block a user