GCS_MAVLink: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED

This commit is contained in:
Peter Barker 2021-09-24 13:10:47 +10:00 committed by Peter Barker
parent d86e2792fd
commit 341379c5bd

View File

@ -4836,7 +4836,7 @@ void GCS_MAVLINK::send_set_position_target_global_int(uint8_t target_system, uin
void GCS_MAVLINK::send_generator_status() const
{
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
AP_Generator *generator = AP::generator();
if (generator == nullptr) {
return;