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,13 +14,12 @@
|
||||
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_HAL/AP_HAL.h>
|
||||
#include "AP_Notify_config.h"
|
||||
|
||||
#if AP_NOTIFY_SYSFS_LED_ENABLED
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
#include "Led_Sysfs.h"
|
||||
|
||||
#include <AP_HAL_Linux/Led_Sysfs.h>
|
||||
|
||||
Led_Sysfs::Led_Sysfs(const char *red, const char *green, const char *blue,
|
||||
uint8_t off_brightness, uint8_t low_brightness, uint8_t medium_brightness, uint8_t high_brightness):
|
||||
RGBLed(off_brightness, high_brightness, medium_brightness, low_brightness),
|
||||
@@ -47,4 +46,4 @@ bool Led_Sysfs::hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue)
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#endif // AP_NOTIFY_SYSFS_LED_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user