2022-05-24 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the 'LiveWireLwrpGpio::gpiQuantity()' and
	'LiveWireLwrpGpio::gpoQuantity()' methods where they returned slot
	rather than line quantities.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-05-24 11:51:30 -04:00
parent 785156ecec
commit b2e1c2926f
2 changed files with 6 additions and 2 deletions

View File

@@ -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();
}