drivers: sensors: ti_hdc20xx: use uint16_t variables to store the samples
The temperature and humidity samples are 16 bits long and can therefore fit in a uint16_t variable. This save 4 bytes of RAM. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
8ab219cde5
commit
7ebae7f569
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ struct ti_hdc20xx_config {
|
|||
};
|
||||
|
||||
struct ti_hdc20xx_data {
|
||||
int32_t t_sample;
|
||||
int32_t rh_sample;
|
||||
uint16_t t_sample;
|
||||
uint16_t rh_sample;
|
||||
};
|
||||
|
||||
static int ti_hdc20xx_sample_fetch(const struct device *dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue