Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
generationmake committed Nov 26, 2023
1 parent 9064f4a commit 8202e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CyphalRobotController07-CAN-firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ bool TimerHandler0(struct repeating_timer *t)
int encoder0_diff = encoder0_new - encoder0_old;
encoder0_old = encoder0_new;

if ( motor0_enabled_flag == 1 )
if ( motor0_enabled_flag == 1 )
{
int motor0_error = motor0_ticks_per_100ms - encoder0_diff;
motor0_error_sum = motor0_error_sum + motor0_error;
Expand All @@ -969,7 +969,7 @@ bool TimerHandler0(struct repeating_timer *t)
int encoder1_diff = encoder1_new - encoder1_old;
encoder1_old = encoder1_new;

if ( motor1_enabled_flag == 1 )
if ( motor1_enabled_flag == 1 )
{
int motor1_error = motor1_ticks_per_100ms - encoder1_diff;
motor1_error_sum = motor1_error_sum + motor1_error;
Expand Down

0 comments on commit 8202e44

Please sign in to comment.