Skip to content

Commit

Permalink
Fixed lightbar led id not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Danilo1301 committed Sep 12, 2024
1 parent 510491a commit f88ddd6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GiroflexVSL/LightGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Json::Value LightGroup::ToJSON()
value["rotateInverse"] = rotateInverse;

value["useLightbarLEDs"] = useLightbarLEDs;
value["lightbarLEDStartIndex"] = lightbarLEDStartIndex;
value["useNormalLEDs"] = useNormalLEDs;
value["normalLEDStartIndex"] = normalLEDStartIndex;

Expand Down Expand Up @@ -249,6 +250,8 @@ void LightGroup::FromJSON(Json::Value value)
rotateInverse = ValidateValue(value["rotateInverse"], rotateInverse).asBool();

useLightbarLEDs = ValidateValue(value["useLightbarLEDs"], useLightbarLEDs).asBool();
lightbarLEDStartIndex = ValidateValue(value["lightbarLEDStartIndex"], lightbarLEDStartIndex).asInt();

useNormalLEDs = ValidateValue(value["useNormalLEDs"], useNormalLEDs).asBool();
normalLEDStartIndex = ValidateValue(value["normalLEDStartIndex"], normalLEDStartIndex).asInt();

Expand Down
1 change: 1 addition & 0 deletions GiroflexVSL/LightGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class LightGroup {
int lightbarLEDStartIndex = 1;
bool useNormalLEDs = false;
int normalLEDStartIndex = 1;

CRGBA ledColor1Enabled = CRGBA(255, 255, 255);
CRGBA ledColor2Enabled = CRGBA(255, 255, 255);
CRGBA ledColor3Enabled = CRGBA(255, 255, 255);
Expand Down
1 change: 1 addition & 0 deletions GiroflexVSL/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ extern "C" void OnModPreLoad()

Log::Level(LOG_LEVEL::LOG_BOTH) << "Preload()" << std::endl;
Log::Level(LOG_LEVEL::LOG_BOTH) << "AML headers: 1.1" << std::endl;
Log::Level(LOG_LEVEL::LOG_BOTH) << "Test #1" << std::endl;

logger->SetTag("GiroflexVSL");

Expand Down
Binary file modified files/versions/3.8.0/GiroflexVSL-3.8.0__en.zip
Binary file not shown.
Binary file modified files/versions/3.8.0/GiroflexVSL-3.8.0__pt-br.zip
Binary file not shown.

0 comments on commit f88ddd6

Please sign in to comment.