apps/system/lm75: Missing semicolon when floating point enabled
This commit is contained in:
parent
cbbc58722b
commit
632480ce24
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_SYSTEM_LM75_DEVNAME
|
#ifndef CONFIG_SYSTEM_LM75_DEVNAME
|
||||||
# warning CONFIG_SYSTEM_LM75_DEVNAME is not defined
|
# warning CONFIG_SYSTEM_LM75_DEVNAME is not defined
|
||||||
# define CONFIG_SYSTEM_LM75_DEVNAME"/dev/temp"
|
# define CONFIG_SYSTEM_LM75_DEVNAME "/dev/temp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_SYSTEM_LM75_FAHRENHEIT) && !defined(CONFIG_SYSTEM_LM75_CENTIGRADE)
|
#if !defined(CONFIG_SYSTEM_LM75_FAHRENHEIT) && !defined(CONFIG_SYSTEM_LM75_CENTIGRADE)
|
||||||
@ -137,13 +137,16 @@ int lm75_main(int argc, char *argv[])
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Print the current temperature on stdout */
|
||||||
|
|
||||||
#ifdef CONFIG_LIBC_FLOATINGPOINT
|
#ifdef CONFIG_LIBC_FLOATINGPOINT
|
||||||
temp = (double)temp16 / 65536.0
|
temp = (double)temp16 / 65536.0;
|
||||||
#ifdef CONFIG_SYSTEM_LM75_FAHRENHEIT
|
#ifdef CONFIG_SYSTEM_LM75_FAHRENHEIT
|
||||||
printf("%3.2f degrees Fahrenheit\n", temp);
|
printf("%3.2f degrees Fahrenheit\n", temp);
|
||||||
#else
|
#else
|
||||||
printf("%3.2f degrees Centigrade\n", temp);
|
printf("%3.2f degrees Centigrade\n", temp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_SYSTEM_LM75_FAHRENHEIT
|
#ifdef CONFIG_SYSTEM_LM75_FAHRENHEIT
|
||||||
printf("0x%04x.%04x degrees Fahrenheit\n", temp16 >> 16, temp16 & 0xffff);
|
printf("0x%04x.%04x degrees Fahrenheit\n", temp16 >> 16, temp16 & 0xffff);
|
||||||
|
Loading…
Reference in New Issue
Block a user