diff --git a/ChangeLog b/ChangeLog index 44bd733c..3bb2d9fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23167,3 +23167,7 @@ 2022-05-23 Fred Gleason * Fixed a regression in 'docs/opsguide/Makefile.am' that broke the 'make install' target. +2022-05-24 Fred Gleason + * Fixed a bug in the 'LiveWireLwrpGpio::gpiQuantity()' and + 'LiveWireLwrpGpio::gpoQuantity()' methods where they returned slot + rather than line quantities. diff --git a/ripcd/livewire_lwrpgpio.cpp b/ripcd/livewire_lwrpgpio.cpp index 1dc6c5f0..2aaed0cf 100644 --- a/ripcd/livewire_lwrpgpio.cpp +++ b/ripcd/livewire_lwrpgpio.cpp @@ -69,13 +69,13 @@ RDMatrix::Type LiveWireLwrpGpio::type() unsigned LiveWireLwrpGpio::gpiQuantity() { - return gpio_livewire->gpis(); + return RD_LIVEWIRE_GPIO_BUNDLE_SIZE*gpio_livewire->gpis(); } unsigned LiveWireLwrpGpio::gpoQuantity() { - return gpio_livewire->gpos(); + return RD_LIVEWIRE_GPIO_BUNDLE_SIZE*gpio_livewire->gpos(); }