From f23d43074f921b6a2ec45d6d6a3ea3e0be811005 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周一, 22 2月 2016 08:26:32 +0800
Subject: [PATCH] FIx typo in config typedef for issue #26

---
 libscpi/src/units.c       |    4 ++--
 libscpi/inc/scpi/config.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libscpi/inc/scpi/config.h b/libscpi/inc/scpi/config.h
index 6371bb0..1824ab2 100644
--- a/libscpi/inc/scpi/config.h
+++ b/libscpi/inc/scpi/config.h
@@ -109,8 +109,8 @@
 #define USE_UNITS_ANGLE SYSTEM_TYPE
 #endif
 
-#ifndef USE_UNITS_PARICLES
-#define USE_UNITS_PARICLES SYSTEM_TYPE
+#ifndef USE_UNITS_PARTICLES
+#define USE_UNITS_PARTICLES SYSTEM_TYPE
 #endif
 
 #ifndef USE_UNITS_DISTANCE
diff --git a/libscpi/src/units.c b/libscpi/src/units.c
index b13b467..47c7f9e 100644
--- a/libscpi/src/units.c
+++ b/libscpi/src/units.c
@@ -63,7 +63,7 @@
  * units definition IEEE 488.2-1992 tab 7-1
  */
 const scpi_unit_def_t scpi_units_def[] = {
-#if USE_UNITS_PARICLES
+#if USE_UNITS_PARTICLES
     /* Absorbet dose */
     {/* name */ "GY", /* unit */ SCPI_UNIT_GRAY, /* mult */ 1},
 
@@ -90,7 +90,7 @@
 
     /* Mass */
     {/* name */ "U", /* unit */ SCPI_UNIT_ATOMIC_MASS, /* mult */ 1},
-#endif /* USE_UNITS_PARICLES */
+#endif /* USE_UNITS_PARTICLES */
 
 #if USE_UNITS_ANGLE
     /* Angle */

--
Gitblit v1.9.1