]> sigrok.org Git - libserialport.git/commitdiff
Define SP_PARITY_* more logically.
authorMartin Ling <redacted>
Wed, 20 Nov 2013 19:56:11 +0000 (19:56 +0000)
committerBert Vermeulen <redacted>
Fri, 22 Nov 2013 00:47:34 +0000 (01:47 +0100)
libserialport.h.in

index 6fc7ef55ddd202d91ba51f69a309d44f701ede1b..264c7db8ca496c69d4ee87a9a199ce46c2919606 100644 (file)
@@ -115,10 +115,10 @@ enum sp_parity {
        SP_PARITY_INVALID = -1,
        /** No parity. */
        SP_PARITY_NONE = 0,
-       /** Even parity. */
-       SP_PARITY_EVEN = 1,
        /** Odd parity. */
-       SP_PARITY_ODD = 2,
+       SP_PARITY_ODD = 1,
+       /** Even parity. */
+       SP_PARITY_EVEN = 2,
 };
 
 /** RTS pin behaviour. */