diff --git a/module/camera/src/cap_v4l.cpp b/module/camera/src/cap_v4l.cpp index b53c3be2..dbc3931a 100644 --- a/module/camera/src/cap_v4l.cpp +++ b/module/camera/src/cap_v4l.cpp @@ -1066,7 +1066,7 @@ bool CvCaptureCAM_V4L_K::tryIoctl(unsigned long ioctlCode, void *parameter) //co DqbufTimeoutuSec = STIMEOUT_RESET_USEC; // v4l2_reset(); //} - printf("camera driver reset - time: %d\n", systime() - StartTime); + printf("camera driver reset - time: %lu\n", systime() - StartTime); } return false; diff --git a/module/core/src/device/wombat/wombat_device.cpp b/module/core/src/device/wombat/wombat_device.cpp index 76ef9546..bf81c910 100644 --- a/module/core/src/device/wombat/wombat_device.cpp +++ b/module/core/src/device/wombat/wombat_device.cpp @@ -105,9 +105,9 @@ class WombatDevice : public kipr::core::Device 1, 2, address, - (value & 0xFF00) >> 8, + (std::uint8_t)((value & 0xFF00) >> 8), address + 1, - (value & 0x00FF) >> 0, + (std::uint8_t)((value & 0x00FF) >> 0), 'S' }; @@ -122,13 +122,13 @@ class WombatDevice : public kipr::core::Device 1, 4, address, - (value & 0xFF000000) >> 24, + (std::uint8_t)((value & 0xFF000000) >> 24), address + 1, - (value & 0x00FF0000) >> 16, + (std::uint8_t)((value & 0x00FF0000) >> 16), address + 2, - (value & 0x0000FF00) >> 8, + (std::uint8_t)((value & 0x0000FF00) >> 8), address + 3, - (value & 0x000000FF) >> 0, + (std::uint8_t)((value & 0x000000FF) >> 0), 'S' }; diff --git a/module/graphics/public/kipr/graphics/graphics_characters.h b/module/graphics/public/kipr/graphics/graphics_characters.h index 165efcc8..80361588 100644 --- a/module/graphics/public/kipr/graphics/graphics_characters.h +++ b/module/graphics/public/kipr/graphics/graphics_characters.h @@ -103,7 +103,7 @@ void graphics_print_character(int n, int x, int y, int r, int g, int b, float si * \param size The strings's size * \ingroup graphics */ -void graphics_print_string(char s[], int x, int y, int r, int g, int b, float size); +void graphics_print_string(const char s[], int x, int y, int r, int g, int b, float size); /** diff --git a/module/graphics/src/graphics.cpp b/module/graphics/src/graphics.cpp index 14a6bcf4..4007d65a 100644 --- a/module/graphics/src/graphics.cpp +++ b/module/graphics/src/graphics.cpp @@ -134,7 +134,7 @@ inline Pixel fromTrueColor(Encoding enc, const int _0, const int _1, const int _ { switch(enc) { case RGB: return Pixel(_0 / 255.0, _1 / 255.0, _2 / 255.0); - case BGR: return Pixel(_2 / 255.0, _1 / 255.0, _0 / 255.0); + default: return Pixel(_2 / 255.0, _1 / 255.0, _0 / 255.0); } } diff --git a/module/graphics/src/graphics_characters.cpp b/module/graphics/src/graphics_characters.cpp index 547ed70f..e7e471b0 100644 --- a/module/graphics/src/graphics_characters.cpp +++ b/module/graphics/src/graphics_characters.cpp @@ -77,7 +77,7 @@ int __bold=0; #endif -void graphics_print_string(char s[],int x, int y, int r, int g, int b, float size) +void graphics_print_string(const char s[],int x, int y, int r, int g, int b, float size) { int i,l; l=strlen(s);