duplication of data structures in hardware
libhardware.h contains a copy of the structures created in the other .h files for instance the sensor structure is defined both in sensor.h and libhardware.h If we forget to copy a change in libhardware.h promethe will bug becauseof different data structures in the library and in the main core of promethe. To Suppress the bug a simple solution is to call the different .h from libhardware.h instead of using a copy.
Avoid also using small functions hidding global variables.
PG.