summaryrefslogtreecommitdiff
path: root/software/hhd70dongle/hhd70dongle.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/hhd70dongle/hhd70dongle.c')
-rw-r--r--software/hhd70dongle/hhd70dongle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c
index bc62dea..9bf3e8b 100644
--- a/software/hhd70dongle/hhd70dongle.c
+++ b/software/hhd70dongle/hhd70dongle.c
@@ -106,6 +106,8 @@ int main(void)
write_buffer[3]='p';
write_buffer[4]='s';
write_buffer[5]=':';
+ adc_on();
+ _delay_ms(250);
usb_rawhid_send((uint8_t*)"temp c1101:",255);
debug_sprint_int16hex(write_buffer+6, c1101_measureTemp());
usb_rawhid_send(write_buffer+6,255);
@@ -113,6 +115,7 @@ int main(void)
usb_rawhid_send((uint8_t*)"temp atmega:",255);
debug_sprint_int16hex(write_buffer+10, adc_read(ADCMUX_ADC12));
usb_rawhid_send(write_buffer+10,255);
+ adc_off();
_delay_ms(250);
led_on();
usb_rawhid_send((uint8_t*)"TX Data: String",255);