This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include "whynter-ac.h" | |
| static uint8_t clamp_u8(uint8_t value, uint8_t min, uint8_t max) { | |
| if (value < min) return min; | |
| if (value > max) return max; | |
| return value; | |
| } |