mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-02 04:39:59 -07:00
Cleanup and fixes
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
#include "colors.h"
|
||||
|
||||
inline int rgbcmp(RgbColor* a, RgbColor* b) {
|
||||
inline int rgbcmp(const RgbColor* a, const RgbColor* b) {
|
||||
return memcmp(a, b, sizeof(RgbColor));
|
||||
}
|
||||
|
||||
inline int hsvcmp(HsvColor* a, HsvColor* b) {
|
||||
inline int hsvcmp(const HsvColor* a, const HsvColor* b) {
|
||||
return memcmp(a, b, sizeof(HsvColor));
|
||||
}
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@ typedef struct HsvColor {
|
||||
uint8_t v;
|
||||
} HsvColor;
|
||||
|
||||
int rgbcmp(RgbColor* a, RgbColor* b);
|
||||
int rgbcmp(const RgbColor* a, const RgbColor* b);
|
||||
|
||||
int hsvcmp(HsvColor* a, HsvColor* b);
|
||||
int hsvcmp(const HsvColor* a, const HsvColor* b);
|
||||
|
||||
RgbColor hsv2rgb(HsvColor hsv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user