mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Notify: stop using linux board subtype in Notify LED setup
... instead have the board definitions define things like we do for ChibiOS
This commit is contained in:
committed by
Andrew Tridgell
parent
55308e6d79
commit
501d0d8759
@@ -14,9 +14,13 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "AP_Notify_config.h"
|
||||
|
||||
#if AP_NOTIFY_DISCO_LED_ENABLED
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
#include "DiscoLED.h"
|
||||
|
||||
#include <AP_HAL_Linux/Led_Sysfs.h>
|
||||
@@ -92,4 +96,4 @@ bool DiscoLED::hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue)
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#endif // AP_NOTIFY_DISCO_LED_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user