diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-31 14:15:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-31 14:15:36 +0000 |
commit | 683c7dbd29a864ee20c792918fd32eedf9b53f69 (patch) | |
tree | ecf3cd73d71ad66b3c62fe2f86aff56f2d8b06fe /nuttx/drivers/power | |
parent | 7e732a9cb78f197c4b44892a574842ca1eba0823 (diff) | |
download | px4-nuttx-683c7dbd29a864ee20c792918fd32eedf9b53f69.tar.gz px4-nuttx-683c7dbd29a864ee20c792918fd32eedf9b53f69.tar.bz2 px4-nuttx-683c7dbd29a864ee20c792918fd32eedf9b53f69.zip |
Can't use 'class' as a field name! Backward conditional compilation in usbmsc.c
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4350 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/power')
-rw-r--r-- | nuttx/drivers/power/max1704x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/power/max1704x.c b/nuttx/drivers/power/max1704x.c index 01a66d80c..ec50515e6 100644 --- a/nuttx/drivers/power/max1704x.c +++ b/nuttx/drivers/power/max1704x.c @@ -317,7 +317,7 @@ static int max1704x_putreg16(FAR struct max1704x_dev_s *priv, uint8_t regaddr, static inline int max1704x_getvcell(FAR struct max1704x_dev_s *priv, b16_t *vcell) { - uint16_t regval; + uint16_t regval = 0; int ret; ret = max1704x_getreg16(priv, MAX1407X_VCELL_ADDR, ®val); @@ -339,7 +339,7 @@ static inline int max1704x_getvcell(FAR struct max1704x_dev_s *priv, static inline int max1704x_getsoc(FAR struct max1704x_dev_s *priv, b16_t *soc) { - uint16_t regval; + uint16_t regval = 0; int ret; ret = max1704x_getreg16(priv, MAX1407X_VCELL_ADDR, ®val); |