Skip to content

Commit dd8adbc

Browse files
committedJan 13, 2025
Arc widget bug #698
1 parent bdadf84 commit dd8adbc

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
 

‎npm-module/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Envox <eez@envox.hr>",
44
"description": "EEZ Studio for building standalone dashboard applications",
55
"repository": "https://github.com/eez-open/studio",
6-
"version": "0.0.58",
6+
"version": "0.0.59",
77
"revision": "1",
88
"license": "GPL-3.0-only",
99
"files": ["packages", "libs", "resources"]

‎packages/project-editor/flow/components/actions/modbus.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ export class ModbusActionComponent extends ActionComponent {
231231

232232
let connectionId =
233233
connectionObject instanceof SerialConnection
234-
? "serial-" + connectionObject.connectionId
234+
? "serial-" +
235+
connectionObject.connectionId +
236+
"-" +
237+
timeout
235238
: "tcp-" + connectionObject.id;
236239

237240
let client;

‎packages/project-editor/lvgl/widgets/Arc.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export class LVGLArcWidget extends LVGLWidget {
114114
rangeMaxType: "literal",
115115
value: 25,
116116
valueType: "literal",
117-
bgStartAngle: 120,
118-
bgEndAngle: 60,
117+
bgStartAngle: 135,
118+
bgEndAngle: 45,
119119
mode: "NORMAL",
120120
rotation: 0
121121
},
@@ -291,11 +291,11 @@ export class LVGLArcWidget extends LVGLWidget {
291291
//}
292292
}
293293

294-
if (this.bgStartAngle != 120) {
294+
if (this.bgStartAngle != 135) {
295295
build.line(`lv_arc_set_bg_start_angle(obj, ${this.bgStartAngle});`);
296296
}
297297

298-
if (this.bgEndAngle != 0) {
298+
if (this.bgEndAngle != 45) {
299299
build.line(`lv_arc_set_bg_end_angle(obj, ${this.bgEndAngle});`);
300300
}
301301

0 commit comments

Comments
 (0)