From 20e63a77b58073e2dacdd85857a4f78b807a055c Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Wed, 20 Nov 2013 19:56:11 +0000 Subject: [PATCH] Define SP_PARITY_* more logically. --- libserialport.h.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. */