mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-08 07:57:35 -04:00
Logging info and adding zeroed speed initialisation to fix #1241
* Adding zeroed speed initialisation to modes that do not support speed to avoid bad save values in profile * Bad values in saved profile will corrupt brightness calculation on load. * Aligning profile version and header string * Adding profile validation logging * Adding success / failure logging for each controller when attempting to load profile Commit amended by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
2
cli.cpp
2
cli.cpp
@@ -654,10 +654,12 @@ bool OptionProfile(std::string argument, std::vector<RGBController *> &rgb_contr
|
||||
RGBController* device = rgb_controllers[controller_idx];
|
||||
|
||||
device->DeviceUpdateMode();
|
||||
LOG_DEBUG("Updating mode for %s to %i", device->name.c_str(), device->active_mode);
|
||||
|
||||
if(device->modes[device->active_mode].color_mode == MODE_COLORS_PER_LED)
|
||||
{
|
||||
device->DeviceUpdateLEDs();
|
||||
LOG_DEBUG("Mode uses per-LED color, also updating LEDs");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user