From: Martin Ling Date: Wed, 20 Nov 2013 19:56:11 +0000 (+0000) Subject: Define SP_PARITY_* more logically. X-Git-Tag: libserialport-0.1.0~88 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=20e63a77b58073e2dacdd85857a4f78b807a055c;p=libserialport.git Define SP_PARITY_* more logically. --- diff --git a/libserialport.h.in b/libserialport.h.in index 6fc7ef5..264c7db 100644 --- a/libserialport.h.in +++ b/libserialport.h.in @@ -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. */