Browse Source

AP_HAL_Linux: fix copy and paste error on gpio table

master
Lucas De Marchi 7 years ago
parent
commit
d31e85e738
  1. 2
      libraries/AP_HAL_Linux/GPIO_Edge.cpp
  2. 2
      libraries/AP_HAL_Linux/GPIO_Navio.cpp
  3. 2
      libraries/AP_HAL_Linux/GPIO_Navio2.cpp

2
libraries/AP_HAL_Linux/GPIO_Edge.cpp

@ -23,6 +23,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = { @@ -23,6 +23,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = {
const uint8_t Linux::GPIO_Sysfs::n_pins = _EDGE_GPIO_MAX;
static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _EDGE_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 edge");
#endif

2
libraries/AP_HAL_Linux/GPIO_Navio.cpp

@ -19,6 +19,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = { @@ -19,6 +19,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = {
const uint8_t Linux::GPIO_Sysfs::n_pins = _NAVIO_GPIO_MAX;
static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _NAVIO_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_navio");
#endif

2
libraries/AP_HAL_Linux/GPIO_Navio2.cpp

@ -29,6 +29,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = { @@ -29,6 +29,6 @@ const unsigned Linux::GPIO_Sysfs::pin_table[] = {
const uint8_t Linux::GPIO_Sysfs::n_pins = _NAVIO2_GPIO_MAX;
static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _NAVIO2_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_navio2");
#endif

Loading…
Cancel
Save