PIIODevice destructor fix
This commit is contained in:
@@ -59,6 +59,12 @@ PISPI::PISPI(const PIString & path, uint speed, PIIODevice::DeviceMode mode) : P
|
||||
}
|
||||
|
||||
|
||||
PISPI::~PISPI() {
|
||||
stop();
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
void PISPI::setSpeed(uint speed_hz) {
|
||||
spi_speed = speed_hz;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user