Skip to content

Commit

Permalink
try to solve shifting 32-bit by 251-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
pkotamnives committed Aug 2, 2023
1 parent 18c177a commit de85809
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions projects/cm_mcu/LocalTasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,21 +675,21 @@ int8_t getFFpresentbit(const uint8_t i)
configASSERT(i < NFIREFLIES);
if (i < NFIREFLIES_IT_F1) {
j = i;
val = (int8_t)(((ffl12_f1_args.present_bit_mask) >> j) & 0x01);
val = (int8_t)(((ffl12_f1_args.present_bit_mask) >> (int8_t)j) & 0x01);
}

else if (NFIREFLIES_IT_F1 <= i && i < NFIREFLIES_IT_F1 + NFIREFLIES_DAQ_F1) {
j = i - NFIREFLIES_IT_F1;
val = (int8_t)(((ffldaq_f1_args.present_bit_mask) >> j) & 0x01);
val = (int8_t)(((ffldaq_f1_args.present_bit_mask) >> (int8_t)j) & 0x01);
}

else if (NFIREFLIES_F1 <= i && i < NFIREFLIES_F1 + NFIREFLIES_IT_F2) {
j = i - NFIREFLIES_F1;
val = (int8_t)(((ffl12_f2_args.present_bit_mask) >> j) & 0x01);
val = (int8_t)(((ffl12_f2_args.present_bit_mask) >> (int8_t)j) & 0x01);
}
else {
j = i - (NFIREFLIES_F1 + NFIREFLIES_IT_F2);
val = (int8_t)(((ffldaq_f2_args.present_bit_mask) >> j) & 0x01);
val = (int8_t)(((ffldaq_f2_args.present_bit_mask) >> (int8_t)j) & 0x01);
}

return val;
Expand Down
1 change: 0 additions & 1 deletion projects/cm_mcu/ZynqMonTask.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,6 @@ void zm_fill_structs(void)
zm_set_firefly_ff12part(&zynqmon_data[185], 204);
// firefly_presentbit, size 20
zm_set_firefly_presentbit(&zynqmon_data[191], 212);

}
#define ZMON_VALID_ENTRIES 211
#endif
Expand Down

0 comments on commit de85809

Please sign in to comment.