Fix warnings in RGBController_Nanoleaf.cpp
This commit is contained in:
parent
102dccee72
commit
4ef2917cf4
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue