LimeSuite
LimeSuite copied to clipboard
USB draw current to stays high after example's exit (which is not good)
Within the LimeSuite/src/examples/ folder the code that enables the TX or RX does not cleanly disable them after example code. finishes, hence not fully providing an good example of how to use the LimeSuite
library.
This causes the USB draw current to stays high (+/- 1.8
Amps vs idle of 1.0
Amps on a LimeSDR Mini 2.0 in receive). This is not a good thing.
I recommend adding the following code near the end of appropriate examples.
> if (LMS_EnableChannel(device, LMS_CH_TX, 0, false) != 0)
> error();
> if (LMS_EnableChannel(device, LMS_CH_RX, 0, false) != 0)
> error();
>
Files affected are: basicRX.cpp, dualRXTX.cpp, singleRX.cpp where code is needed. Yet in basicTX.cpp it's done correctly. For TX example it matters a lot more - obviously; but it's just as valid in others (because current draw).