Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324564
b: refs/heads/master
c: 6cffc1f
h: refs/heads/master
v: v3
  • Loading branch information
Marek Vasut authored and Jonathan Cameron committed Aug 16, 2012
1 parent 1068548 commit 00bd40b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 390d75c1287bf68c2e29226bf8eb10ae6a08c380
refs/heads/master: 6cffc1f814b25d59ca6f0cd75b64bb159801c0fa
10 changes: 10 additions & 0 deletions trunk/drivers/staging/iio/Documentation/generic_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ void process_scan(char *data,
print2byte(*(uint16_t *)(data + channels[k].location),
&channels[k]);
break;
case 4:
if (!channels[k].is_signed) {
uint32_t val = *(uint32_t *)
(data + channels[k].location);
printf("%05f ", ((float)val +
channels[k].offset)*
channels[k].scale);

}
break;
case 8:
if (channels[k].is_signed) {
int64_t val = *(int64_t *)
Expand Down

0 comments on commit 00bd40b

Please sign in to comment.