mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-04-19 04:09:45 +00:00
Minor changes
This commit is contained in:
parent
9acb2d7635
commit
3f3e67f8ed
1 changed files with 1 additions and 1 deletions
2
ina260.c
2
ina260.c
|
@ -222,7 +222,7 @@ static int ina260_set_register_3bits(struct client_data *cdata, unsigned char re
|
|||
if(ina260_read_register(cdata,reg,&value)){
|
||||
return 1;
|
||||
}
|
||||
mask=~(0x111 << n);
|
||||
mask=~(0x7 << n);
|
||||
value &= mask; // clear bits
|
||||
value |= value3bits << n;
|
||||
if(ina260_write_register(cdata,reg,value)){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue