Просмотр исходного кода

Replaced static const values with defines.

bkaradzic 12 лет назад
Родитель
Сommit
59a76342f2
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      examples/common/entry/camera.h

+ 4 - 4
examples/common/entry/camera.h

@@ -3,10 +3,10 @@
  * License: http://www.opensource.org/licenses/BSD-2-Clause
  */
 
-static const uint8_t CAMERA_KEY_UP    = 1u << 1;
-static const uint8_t CAMERA_KEY_DOWN  = 1u << 2;
-static const uint8_t CAMERA_KEY_LEFT  = 1u << 3;
-static const uint8_t CAMERA_KEY_RIGHT = 1u << 4;
+#define CAMERA_KEY_UP    UINT8_C(0x1)
+#define CAMERA_KEY_DOWN  UINT8_C(0x2)
+#define CAMERA_KEY_LEFT  UINT8_C(0x4)
+#define CAMERA_KEY_RIGHT UINT8_C(0x8)
 
 ///
 void cameraSetPosition(float* _pos);