The classes extending IOBase were already updating those fields (except SerialBase). SerialBase was the only class missing this change.
These changes allow the user to use multiple Serial interface at the same time. It was impossible before, as Pi4J would throw IOAlreadyExistsException.
This commit "moves" the fixes for the similar issues in the SPI interface. It also moves the similar code found in the dependency classes in the IOBase class.
The classes extending IOBase were already updating those fields (except SerialBase). SerialBase was the only class missing this change.
These changes allow the user to use multiple Serial interface at the same time. It was impossible before, as Pi4J would throw IOAlreadyExistsException.
This commit "moves" the fixes for the similar issues in the SPI interface. It also moves the similar code found in the dependency classes in the IOBase class.
Ref: #244, #257 Closes: #257