Skip to content

Commit

Permalink
Stupid mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav-engdahl committed Oct 5, 2018
1 parent d5e3115 commit 20dd4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raspiraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ void update_regs(const struct sensor_def *sensor, struct mode_def *mode, int hfl
int num_regs = (sensor->exposure_reg_num_bits+7)>>3;
int bit_end = (sensor->exposure_reg_num_bits-1) & 0x7;

for(i=0; i<num_regs; i++, j-=8)
for(i=0; i<num_regs; i++)
{
val = (exposure >> (8*(num_regs-1-i))) & 0xFF;
modReg(mode, sensor->exposure_reg+i, 0, bit_end, val, EQUAL);
Expand Down

0 comments on commit 20dd4bd

Please sign in to comment.