Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno3634-gif committed Sep 1, 2024
1 parent 5a4a166 commit 9d81fc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
<pointsize>12</pointsize>
</font>
</property>
<property name="cursor">
<cursorShape>BlankCursor</cursorShape>
</property>
<property name="windowTitle">
<string>LukHudX</string>
</property>
Expand Down Expand Up @@ -319,7 +322,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Preferred">
<sizepolicy hsizetype="Ignored" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
Expand Down Expand Up @@ -662,12 +665,15 @@
</property>
<property name="font">
<font>
<family>Fira Mono</family>
<family>Source Code Pro</family>
<pointsize>28</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="cursor">
<cursorShape>BlankCursor</cursorShape>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
Expand Down
7 changes: 3 additions & 4 deletions src/store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void store::parseBson(std::vector<std::uint8_t> v){
if(j.contains(BSON_INVERTERTEMPERATURE)){
int temp = j[BSON_INVERTERTEMPERATURE];
this->setInverterTemperature(temp);
if(temp>= INVERTER_TEMPERATURE_WARNING && error_map.find("Inverter temperature warning") != error_map.end()){
if(temp<= INVERTER_TEMPERATURE_WARNING && error_map.find("Inverter temperature warning") != error_map.end()){
error_map["Inverter temperature warning"] = temp;
scribeError("Inverter temperature warning",WARNING);
}
Expand All @@ -481,10 +481,9 @@ void store::parseBson(std::vector<std::uint8_t> v){
}
if(j.contains(BSON_LAPTIME)){
this->setLapTime(j[BSON_LAPTIME]);
}
}
if(j.contains(BSON_LAPCOUNT)){
short temp = j[BSON_LAPCOUNT];
this->setLapCount(temp);
this->setLapCount(j[BSON_LAPCOUNT]);

}
if(j.contains(BSON_HV)){
Expand Down

0 comments on commit 9d81fc9

Please sign in to comment.