fix bit width bug

This commit is contained in:
Peter McGoron 2022-11-24 09:55:15 -05:00
parent 33ec8351d8
commit 1d54b41735
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ int main(int argc, char **argv) {
if (tick == 100000) { if (tick == 100000) {
mod->cmd = CONTROL_LOOP_WRITE_BIT | CONTROL_LOOP_I; mod->cmd = CONTROL_LOOP_WRITE_BIT | CONTROL_LOOP_I;
/* 0.5 */ /* 0.5 */
mod->word_into_loop = 1 << (CONSTS_FRAC - 1); mod->word_into_loop = (V)1 << (CONSTS_FRAC - 1);
printf("adjust I\n"); printf("adjust I\n");
mod->start_cmd = 1; mod->start_cmd = 1;
} }