diff options
Diffstat (limited to 'src/plugins/canbus/peakcan/peakcanbackend.cpp')
-rw-r--r-- | src/plugins/canbus/peakcan/peakcanbackend.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/canbus/peakcan/peakcanbackend.cpp b/src/plugins/canbus/peakcan/peakcanbackend.cpp index f3d6fda..1d3f2ed 100644 --- a/src/plugins/canbus/peakcan/peakcanbackend.cpp +++ b/src/plugins/canbus/peakcan/peakcanbackend.cpp @@ -210,7 +210,7 @@ bool PeakCanBackendPrivate::open() return false; } - if (!enableReadNotification()) { + if (!acquireReadNotification()) { if (TPCANStatus st = ::CAN_Uninitialize(channelIndex) != PCAN_ERROR_OK) q->setError(systemErrorString(st), QCanBusDevice::ConnectionError); return false; @@ -225,7 +225,7 @@ void PeakCanBackendPrivate::close() Q_Q(PeakCanBackend); enableWriteNotification(false); - disableReadNotification(); + releaseReadNotification(); if (outgoingEventNotifier) { delete outgoingEventNotifier; @@ -345,7 +345,7 @@ void PeakCanBackendPrivate::canWriteNotification() enableWriteNotification(true); } -bool PeakCanBackendPrivate::enableReadNotification() +bool PeakCanBackendPrivate::acquireReadNotification() { Q_Q(PeakCanBackend); @@ -373,7 +373,7 @@ bool PeakCanBackendPrivate::enableReadNotification() return true; } -void PeakCanBackendPrivate::disableReadNotification() +void PeakCanBackendPrivate::releaseReadNotification() { Q_Q(PeakCanBackend); |