projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the cgi function to reply json string.
[bertos.git]
/
boards
/
sam3x-ek
/
examples
/
sam3x-ek_display
/
main.c
diff --git
a/boards/sam3x-ek/examples/sam3x-ek_display/main.c
b/boards/sam3x-ek/examples/sam3x-ek_display/main.c
index ad6a897828ecb7db1f2713704ace27d524111c1b..83f568ef288948d81571e435086fa65794a6e93d 100644
(file)
--- a/
boards/sam3x-ek/examples/sam3x-ek_display/main.c
+++ b/
boards/sam3x-ek/examples/sam3x-ek_display/main.c
@@
-322,7
+322,7
@@
static void read_adc(Bitmap *bm)
while (1)
{
uint16_t value = ADC_RANGECONV(adc_read(1), 0, 3300);
while (1)
{
uint16_t value = ADC_RANGECONV(adc_read(1), 0, 3300);
- uint16_t temp = hw_convertToDegree
(adc_read(ADC_TEMPERATURE_CH));
+ uint16_t temp = hw_convertToDegree(adc_read(ADC_TEMPERATURE_CH));
text_xprintf(lcd_bitmap, 2, 0, TEXT_FILL | TEXT_CENTER,
"Voltage on VR1: %d.%dV", value / 1000, value % 1000);
text_xprintf(lcd_bitmap, 2, 0, TEXT_FILL | TEXT_CENTER,
"Voltage on VR1: %d.%dV", value / 1000, value % 1000);