GNSS fix to uGnssPrivateStreamFillRingBuffer(): return bytes filled.
The function uGnssPrivateStreamFillRingBuffer() is fixed so that it really does return the number of bytes it has put into the ring buffer, rather than just zero on success.
@@ -1578,6 +1578,10 @@ int32_t uGnssPrivateStreamFillRingBuffer(uGnssPrivateInstance_t *pInstance,
}
}
+ if (totalReceiveSize > 0) {
+ errorCodeOrLength = totalReceiveSize;
+ }
+
return errorCodeOrLength;
}
