diff --git a/examples/nx/nx_internal.h b/examples/nx/nx_internal.h
index 7f7c5642af..fa3e347698 100644
--- a/examples/nx/nx_internal.h
+++ b/examples/nx/nx_internal.h
@@ -67,7 +67,7 @@
 #ifndef CONFIG_EXAMPLES_NX_BGCOLOR
 #  if CONFIG_EXAMPLES_NX_BPP == 24 || CONFIG_EXAMPLES_NX_BPP == 32
 #    define CONFIG_EXAMPLES_NX_BGCOLOR 0x007b68ee
-#  elif CONFIG_EXAMPLES_NX_BPP = 16
+#  elif CONFIG_EXAMPLES_NX_BPP == 16
 #    define CONFIG_EXAMPLES_NX_BGCOLOR 0x3088
 #  else
 #    define CONFIG_EXAMPLES_NX_BGCOLOR ' '
@@ -77,7 +77,7 @@
 #ifndef CONFIG_EXAMPLES_NX_COLOR1
 #  if CONFIG_EXAMPLES_NX_BPP == 24 || CONFIG_EXAMPLES_NX_BPP == 32
 #    define CONFIG_EXAMPLES_NX_COLOR1 0x00e6e6fa
-#  elif CONFIG_EXAMPLES_NX_BPP = 16
+#  elif CONFIG_EXAMPLES_NX_BPP == 16
 #    define CONFIG_EXAMPLES_NX_COLOR1 0x30c8
 #  else
 #    define CONFIG_EXAMPLES_NX_COLOR1 '1'
@@ -87,7 +87,7 @@
 #ifndef CONFIG_EXAMPLES_NX_COLOR2
 #  if CONFIG_EXAMPLES_NX_BPP == 24 || CONFIG_EXAMPLES_NX_BPP == 32
 #    define CONFIG_EXAMPLES_NX_COLOR2 0x00dcdcdc
-#  elif CONFIG_EXAMPLES_NX_BPP = 16
+#  elif CONFIG_EXAMPLES_NX_BPP == 16
 #    define CONFIG_EXAMPLES_NX_COLOR2 0x30cc
 #  else
 #    define CONFIG_EXAMPLES_NX_COLOR2 '2'
@@ -97,7 +97,7 @@
 #ifndef CONFIG_EXAMPLES_NX_TBCOLOR
 #  if CONFIG_EXAMPLES_NX_BPP == 24 || CONFIG_EXAMPLES_NX_BPP == 32
 #    define CONFIG_EXAMPLES_NX_TBCOLOR 0x00a9a9a9
-#  elif CONFIG_EXAMPLES_NX_BPP = 16
+#  elif CONFIG_EXAMPLES_NX_BPP == 16
 #    define CONFIG_EXAMPLES_NX_TBCOLOR 0xad55
 #  else
 #    define CONFIG_EXAMPLES_NX_TBCOLOR 'T'
@@ -107,7 +107,7 @@
 #ifndef CONFIG_EXAMPLES_NX_FONTCOLOR
 #  if CONFIG_EXAMPLES_NX_BPP == 24 || CONFIG_EXAMPLES_NX_BPP == 32
 #    define CONFIG_EXAMPLES_NX_FONTCOLOR 0x00000000
-#  elif CONFIG_EXAMPLES_NX_BPP = 16
+#  elif CONFIG_EXAMPLES_NX_BPP == 16
 #    define CONFIG_EXAMPLES_NX_FONTCOLOR 0x0000
 #  else
 #    define CONFIG_EXAMPLES_NX_FONTCOLOR 'F'