Fix warnings in RGBController_Nanoleaf.cpp

This commit is contained in:
Adam Honse 2024-07-31 21:54:26 -05:00
parent 102dccee72
commit 4ef2917cf4

View file

@ -80,7 +80,7 @@ RGBController_Nanoleaf::RGBController_Nanoleaf(std::string a_address, int a_port
\*---------------------------------------------------------*/
if(controller.GetSelectedEffect() == effect.name)
{
active_mode = modes.size() - 1;
active_mode = (int)modes.size() - 1;
}
}
@ -92,7 +92,7 @@ void RGBController_Nanoleaf::SetupZones()
zone led_zone;
led_zone.name = "Nanoleaf Layout";
led_zone.type = ZONE_TYPE_LINEAR;
led_zone.leds_count = controller.GetPanelIds().size();
led_zone.leds_count = (unsigned int)controller.GetPanelIds().size();
led_zone.leds_min = led_zone.leds_count;
led_zone.leds_max = led_zone.leds_count;
led_zone.matrix_map = NULL;