Commit b5906ba5 authored by Claes Sjofors's avatar Claes Sjofors

Xtt trend circbuf bugfix

parent 2cff18ea
...@@ -230,8 +230,10 @@ pwr_tStatus cbuf_GetCircBuffInfo( cbuf_sCircBuffInfo *info, ...@@ -230,8 +230,10 @@ pwr_tStatus cbuf_GetCircBuffInfo( cbuf_sCircBuffInfo *info,
hp = vol_AttributeToAddress(&sts, ap); hp = vol_AttributeToAddress(&sts, ap);
if (hp != NULL) { if (hp != NULL) {
if ( hp->FirstIndex == hp->LastIndex) if ( hp->FirstIndex == hp->LastIndex) {
return 0; sts = 0;
break;
}
if ( info[j].resolution <= 1) { if ( info[j].resolution <= 1) {
if ( samples > hp->Size) if ( samples > hp->Size)
samples = hp->Size; samples = hp->Size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment