Reduce number of digits to 3
This commit is contained in:
parent
0956055d6a
commit
6f052edad2
|
@ -203,12 +203,12 @@ fn main() -> ! {
|
|||
if counter == 0 {
|
||||
led.toggle().unwrap();
|
||||
|
||||
let mut bytes: [u8; 8] = [32, 32, 32, 32, 32, 194, 176, 67];
|
||||
let mut bytes: [u8; 7] = [32, 32, 32, 32, 194, 176, 67];
|
||||
let text = match thermocouple.read_temperature(&mut timer.count_down()) {
|
||||
Ok(mut temperature) => {
|
||||
temperature >>= 2;
|
||||
|
||||
for i in (0..4).rev() {
|
||||
for i in (0..3).rev() {
|
||||
bytes[i] = 48u8 + (temperature % 10) as u8;
|
||||
temperature /= 10;
|
||||
|
||||
|
|
Loading…
Reference in New Issue