AP_Generator: tidy RichenPower defines

This commit is contained in:
Peter Barker 2024-02-15 11:40:29 +11:00 committed by Peter Barker
parent 9c97dc99b1
commit c2f77d0593
2 changed files with 7 additions and 3 deletions

View File

@ -13,10 +13,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "AP_Generator_RichenPower.h" #include "AP_Generator_config.h"
#if AP_GENERATOR_RICHENPOWER_ENABLED #if AP_GENERATOR_RICHENPOWER_ENABLED
#include "AP_Generator_RichenPower.h"
#include <AP_Logger/AP_Logger.h> #include <AP_Logger/AP_Logger.h>
#include <AP_SerialManager/AP_SerialManager.h> #include <AP_SerialManager/AP_SerialManager.h>
#include <AP_Vehicle/AP_Vehicle.h> #include <AP_Vehicle/AP_Vehicle.h>

View File

@ -1,10 +1,12 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#pragma once #pragma once
#include "AP_Generator_Backend.h" #include "AP_Generator_config.h"
#if AP_GENERATOR_RICHENPOWER_ENABLED #if AP_GENERATOR_RICHENPOWER_ENABLED
#include "AP_Generator_Backend.h"
#include <AP_Logger/AP_Logger_config.h> #include <AP_Logger/AP_Logger_config.h>
#include <AP_Common/AP_Common.h> #include <AP_Common/AP_Common.h>
#include <stdint.h> #include <stdint.h>
@ -212,4 +214,4 @@ private:
// maintenamce, this is the last time we sent the warning: // maintenamce, this is the last time we sent the warning:
uint32_t last_maintenance_warning_ms; uint32_t last_maintenance_warning_ms;
}; };
#endif #endif // AP_GENERATOR_RICHENPOWER_ENABLED