From ef74dc21785ec0f710959b168aedb19d9e33e804 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Mon, 11 Dec 2023 08:07:38 +0100 Subject: [PATCH] platform: use uint16_t type instead of unsigned int, for readability --- src/Platform.cpp | 4 ++-- src/Platform.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Platform.cpp b/src/Platform.cpp index cc466ab..7df8e5a 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -234,8 +234,8 @@ Platform::deviceID() } void -Platform::addLEDs(CRGB* leds, unsigned int ledCount) { - FastLED.addLeds(leds, ledCount); +Platform::addLEDs(CRGB* leds, uint16_t ledCount) { + FastLED.addLeds(leds, ledCount); } const String diff --git a/src/Platform.h b/src/Platform.h index 3cc2f5b..9b767bc 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -11,7 +11,7 @@ class Platform : public Task { static BootOptions bootopts; static void setTimezone(int tz) { s_timezone = tz; } static int getTimezone() { return s_timezone; } - static void addLEDs(CRGB* leds, unsigned int ledCount); + static void addLEDs(CRGB* leds, uint16_t ledCount); static const char* name(); static const char* version();