]> sigrok.org Git - libsigrok.git/blobdiff - src/output/analog.c
Build: Include <config.h> first in all source files
[libsigrok.git] / src / output / analog.c
index 82e7ad9c20b167d8c29292025e6a617a6e664b20..6a9ab5973357ec86ae6841526136275538f3e3ad 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
@@ -95,6 +96,7 @@ static void si_printf(float value, GString *out, char *unitstr)
 
 }
 
+/* Please use the same order as in enum sr_unit (libsigrok.h). */
 static void fancyprint(int unit, int mqflags, float value, GString *out)
 {
        switch (unit) {
@@ -241,6 +243,7 @@ static void fancyprint(int unit, int mqflags, float value, GString *out)
                break;
        }
 
+       /* Please use the same order as in enum sr_mqflag (libsigrok.h). */
        if (mqflags & SR_MQFLAG_AC)
                g_string_append_printf(out, " AC");
        if (mqflags & SR_MQFLAG_DC)