SITL: JSON Master: only copy the first 16 servos

This commit is contained in:
Iampete1 2021-12-10 17:02:01 +00:00 committed by Andrew Tridgell
parent e03aed3aa7
commit a36848cba5

View File

@ -159,7 +159,7 @@ void JSON_Master::receive(struct sitl_input &input)
if (list->instance == master_instance) {
// Use the servo outs from this instance
memcpy(input.servos,buffer.pwm,sizeof(input.servos));
memcpy(input.servos,buffer.pwm,sizeof(buffer.pwm));
}
}
}