![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: Command.c
- Revision:
- 120:9f446f1495e8
- Parent:
- 119:4d7fcece9e8e
- Child:
- 121:bbae560cdd43
diff -r 4d7fcece9e8e -r 9f446f1495e8 Command.c --- a/Command.c Wed Apr 06 15:10:47 2016 +0000 +++ b/Command.c Wed Apr 06 15:40:17 2016 +0000 @@ -148,10 +148,9 @@ BuffTemp[20] = 0x00; BuffTemp[21] = 0x00; -Temp = Spi.DAC_B ; + -Temp = 0 ; - + if (Spi.DAC_B < 0x7fff) Temp = Spi.DAC_B - 0x7fff; else Temp = 0x7fff - Spi.DAC_B ; BuffTemp[22] = (Temp >> 8) & 0xff; BuffTemp[23] = (Temp >> 0) & 0xff;