mirror of
https://github.com/espressif/openthread.git
synced 2026-09-25 02:17:39 +00:00
Fix typo in the variable name in NcpBuffer (#979)
This commit is contained in:
committed by
Jonathan Hui
parent
5105a0bc5e
commit
5431f22e31
@@ -100,7 +100,7 @@ void NcpFrameBuffer::SetCallbacks(BufferCallback aEmptyBufferCallback, BufferCal
|
||||
void *aContext)
|
||||
{
|
||||
mEmptyBufferCallback = aEmptyBufferCallback;
|
||||
mNonEmtyBufferCallback = aNonEmptyBufferCallback;
|
||||
mNonEmptyBufferCallback = aNonEmptyBufferCallback;
|
||||
mCallbackContext = aContext;
|
||||
}
|
||||
|
||||
@@ -316,9 +316,9 @@ ThreadError NcpFrameBuffer::InFrameEnd(void)
|
||||
// If buffer was empty before, invoke the callback to signal that buffer is now non-empty.
|
||||
if (wasEmpty)
|
||||
{
|
||||
if (mNonEmtyBufferCallback != NULL)
|
||||
if (mNonEmptyBufferCallback != NULL)
|
||||
{
|
||||
mNonEmtyBufferCallback(mCallbackContext, this);
|
||||
mNonEmptyBufferCallback(mCallbackContext, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ private:
|
||||
const uint16_t mBufferLength; // Length of the the buffer.
|
||||
|
||||
BufferCallback mEmptyBufferCallback; // Callback to signal when buffer becomes empty.
|
||||
BufferCallback mNonEmtyBufferCallback; // Callback to signal when buffer becomes non-empty.
|
||||
BufferCallback mNonEmptyBufferCallback; // Callback to signal when buffer becomes non-empty.
|
||||
void * mCallbackContext; // Context passed to callbacks.
|
||||
|
||||
MessageQueue mMessageQueue; // Main message queue.
|
||||
|
||||
Reference in New Issue
Block a user