AP_HAL_Linux: Fix comment and panic on Bebop

This commit is contained in:
Julien BERAUD 2015-12-16 18:14:55 +01:00 committed by Lucas De Marchi
parent 3a8bd7b829
commit cadef09542
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = {
const uint8_t Linux::GPIO_Sysfs::n_pins = _BEBOP_GPIO_MAX;
static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _BEBOP_GPIO_MAX,
"GPIO pin_table must have the same size of entries in enum gpio_minnow");
"GPIO pin_table must have the same size of entries in enum gpio_bebop");
#endif

View File

@ -374,7 +374,7 @@ void RCOutput_Bebop::_run_rcout()
memset(current_period_us, 0, sizeof(current_period_us));
if (!_get_info(&info)) {
AP_HAL::panic("failed to get BLDC info\n");
AP_HAL::panic("failed to get BLDC info");
}
/* Set motor order depending on BLDC version.On bebop 1 with version 1