|
@@ -105,14 +105,14 @@ void disp_det_error() {
|
105
|
105
|
lv_obj_t *e1, *e2, *e3, *bed;
|
106
|
106
|
void mks_disp_test() {
|
107
|
107
|
char buf[30] = {0};
|
108
|
|
- sprintf_P(buf, PSTR("e1:%d"), thermalManager.degHotend(0));
|
|
108
|
+ sprintf_P(buf, PSTR("e1:%d"), (int)thermalManager.degHotend(0));
|
109
|
109
|
lv_label_set_text(e1, buf);
|
110
|
110
|
#if HAS_MULTI_HOTEND
|
111
|
|
- sprintf_P(buf, PSTR("e2:%d"), thermalManager.degHotend(1));
|
|
111
|
+ sprintf_P(buf, PSTR("e2:%d"), (int)thermalManager.degHotend(1));
|
112
|
112
|
lv_label_set_text(e2, buf);
|
113
|
113
|
#endif
|
114
|
114
|
#if HAS_HEATED_BED
|
115
|
|
- sprintf_P(buf, PSTR("bed:%d"), thermalManager.degBed());
|
|
115
|
+ sprintf_P(buf, PSTR("bed:%d"), (int)thermalManager.degBed());
|
116
|
116
|
lv_label_set_text(bed, buf);
|
117
|
117
|
#endif
|
118
|
118
|
}
|
|
@@ -139,20 +139,20 @@ void lv_draw_ready_print() {
|
139
|
139
|
|
140
|
140
|
e1 = lv_label_create_empty(scr);
|
141
|
141
|
lv_obj_set_pos(e1, 20, 20);
|
142
|
|
- sprintf_P(buf, PSTR("e1: %d"), thermalManager.degHotend(0));
|
|
142
|
+ sprintf_P(buf, PSTR("e1: %d"), (int)thermalManager.degHotend(0));
|
143
|
143
|
lv_label_set_text(e1, buf);
|
144
|
144
|
|
145
|
145
|
#if HAS_MULTI_HOTEND
|
146
|
146
|
e2 = lv_label_create_empty(scr);
|
147
|
147
|
lv_obj_set_pos(e2, 20, 45);
|
148
|
|
- sprintf_P(buf, PSTR("e1: %d"), thermalManager.degHotend(1));
|
|
148
|
+ sprintf_P(buf, PSTR("e1: %d"), (int)thermalManager.degHotend(1));
|
149
|
149
|
lv_label_set_text(e2, buf);
|
150
|
150
|
#endif
|
151
|
151
|
|
152
|
152
|
#if HAS_HEATED_BED
|
153
|
153
|
bed = lv_label_create_empty(scr);
|
154
|
154
|
lv_obj_set_pos(bed, 20, 95);
|
155
|
|
- sprintf_P(buf, PSTR("bed: %d"), thermalManager.degBed());
|
|
155
|
+ sprintf_P(buf, PSTR("bed: %d"), (int)thermalManager.degBed());
|
156
|
156
|
lv_label_set_text(bed, buf);
|
157
|
157
|
#endif
|
158
|
158
|
|
|
@@ -208,27 +208,27 @@ void lv_draw_ready_print() {
|
208
|
208
|
|
209
|
209
|
labelFan = lv_label_create(scr, 380, 80, nullptr);
|
210
|
210
|
|
211
|
|
- sprintf_P(buf, PSTR("%d"), thermalManager.degHotend(0));
|
|
211
|
+ sprintf_P(buf, PSTR("%d"), (int)thermalManager.degHotend(0));
|
212
|
212
|
lv_label_set_text(labelExt1, buf);
|
213
|
213
|
lv_obj_align(labelExt1, buttonExt1, LV_ALIGN_CENTER, 0, LABEL_MOD_Y);
|
214
|
|
- sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetHotend(0));
|
|
214
|
+ sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetHotend(0));
|
215
|
215
|
lv_label_set_text(labelExt1Target, buf);
|
216
|
216
|
lv_obj_align(labelExt1Target, buttonExt1, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y);
|
217
|
217
|
|
218
|
218
|
#if HAS_MULTI_EXTRUDER
|
219
|
|
- sprintf_P(buf, PSTR("%d"), thermalManager.degHotend(1));
|
|
219
|
+ sprintf_P(buf, PSTR("%d"), (int)thermalManager.degHotend(1));
|
220
|
220
|
lv_label_set_text(labelExt2, buf);
|
221
|
221
|
lv_obj_align(labelExt2, buttonExt2, LV_ALIGN_CENTER, 0, LABEL_MOD_Y);
|
222
|
|
- sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetHotend(1));
|
|
222
|
+ sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetHotend(1));
|
223
|
223
|
lv_label_set_text(labelExt2Target, buf);
|
224
|
224
|
lv_obj_align(labelExt2Target, buttonExt2, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y);
|
225
|
225
|
#endif
|
226
|
226
|
|
227
|
227
|
#if HAS_HEATED_BED
|
228
|
|
- sprintf_P(buf, PSTR("%d"), thermalManager.degBed());
|
|
228
|
+ sprintf_P(buf, PSTR("%d"), (int)thermalManager.degBed());
|
229
|
229
|
lv_label_set_text(labelBed, buf);
|
230
|
230
|
lv_obj_align(labelBed, buttonBedstate, LV_ALIGN_CENTER, 0, LABEL_MOD_Y);
|
231
|
|
- sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetBed());
|
|
231
|
+ sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetBed());
|
232
|
232
|
lv_label_set_text(labelBedTarget, buf);
|
233
|
233
|
lv_obj_align(labelBedTarget, buttonBedstate, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y);
|
234
|
234
|
#endif
|
|
@@ -249,15 +249,15 @@ void lv_draw_ready_print() {
|
249
|
249
|
|
250
|
250
|
void lv_temp_refr() {
|
251
|
251
|
#if HAS_HEATED_BED
|
252
|
|
- sprintf(public_buf_l, printing_menu.bed_temp, thermalManager.degBed(), thermalManager.degTargetBed());
|
|
252
|
+ sprintf(public_buf_l, printing_menu.bed_temp, (int)thermalManager.degBed(), (int)thermalManager.degTargetBed());
|
253
|
253
|
lv_label_set_text(labelBed, public_buf_l);
|
254
|
254
|
#endif
|
255
|
255
|
|
256
|
|
- sprintf(public_buf_l, printing_menu.temp1, thermalManager.degHotend(0), thermalManager.degTargetHotend(0));
|
|
256
|
+ sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.degHotend(0), (int)thermalManager.degTargetHotend(0));
|
257
|
257
|
lv_label_set_text(labelExt1, public_buf_l);
|
258
|
258
|
|
259
|
259
|
#if HAS_MULTI_EXTRUDER
|
260
|
|
- sprintf(public_buf_l, printing_menu.temp1, thermalManager.degHotend(1), thermalManager.degTargetHotend(1));
|
|
260
|
+ sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.degHotend(1), (int)thermalManager.degTargetHotend(1));
|
261
|
261
|
lv_label_set_text(labelExt2, public_buf_l);
|
262
|
262
|
#endif
|
263
|
263
|
}
|