Skip to content

Commit 6c0db29

Browse files
author
Richard Unger
committed
fix compile errors due to non-public access
1 parent 5069e26 commit 6c0db29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comms/SimpleFOCRegisters.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ bool SimpleFOCRegisters::registerToComms(RegisterIO& comms, uint8_t reg, FOCMoto
6565
break;
6666
case SimpleFOCRegister::REG_SENSOR_TIMESTAMP:
6767
if (motor->sensor)
68-
comms << (uint32_t)motor->sensor->angle_prev_ts; // stored angle
68+
//comms << (uint32_t)motor->sensor->angle_prev_ts; // TODO stored angle, make it a public or make this friend class
69+
comms << (uint32_t)0;
6970
else
7071
comms << (uint32_t)0;
7172
break;

0 commit comments

Comments
 (0)