Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsharith
373 Mobile 3D Printing
Commits
2e5afe78
Commit
2e5afe78
authored
Apr 22, 2019
by
wyattc
Browse files
write progress and temp
parent
c11cc683
Changes
1
Hide whitespace changes
Inline
Side-by-side
LCD_DISPLAY_FINAL/SoftConsole/MSS_LCD_MSS_CM3_0/MSS_LCD_MSS_CM3_0_app/main.c
View file @
2e5afe78
...
...
@@ -77,7 +77,17 @@ uint8_t tab_state = 0;
erase_block
(
BARSTART_X
,
BARSTART_Y
,
BARSTART_X
+
100
,
BAREND_Y
);
progress
=
g_rx_buff
[
0
];
temp
=
g_rx_buff
[
1
];
if
(
tab_state
==
0
){
MSS_UART_get_rx
(
this_uart
,
g_rx_buff
,
sizeof
(
g_rx_buff
)
);
erase_block
(
BARSTART_X
,
BARSTART_Y
,
BARSTART_X
+
100
,
BAREND_Y
);
if
(
atoi
(
g_rx_buff
[
0
])
<
100
)
fill
(
BARSTART_X
,
BARSTART_X
+
atoi
(
g_rx_buff
[
0
]));
else
if
(
atoi
(
g_rx_buff
[
0
])
>=
100
){
fill
(
BARSTART_X
,
BARSTART_X
+
100
);
display_completed
();
}
write_temp
(
g_rx_buff
[
1
]);
}
signed
char
odox
=
g_rx_buff
[
2
];
signed
char
odoy
=
g_rx_buff
[
3
];
signed
char
mousex
=
g_rx_buff
[
4
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment