Are we getting load cell weight in other units somewhere else? If not, I would suggest defining the units in the function header and removing it from the name of the function.
When we run blood pump in forward direction, we should see negative on arterial and positive on venous. This limit here is to stop blood pump even if the time to run the blood has not been reached.
We need to have a folder next to the application for all the settings since it is not related to the treatment it is only settings configuration files. Since the SD card might be damaged and we still need to store settings. Please change it to refer to the application location and name the folder as configuration or settings.
I understand that prime will likely finish its job before the reservoir fills, but what if it doesn't? If fill finishes first, this code will switch reservoirs before prime was done using it.
There is a script repository in which we keep all the general/common scripts there and since it is not only Dialin related preferred to keep it there. ssh://git@192.168.10.132:7999/ui/scripts.git