We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcfd51e commit ab2f2aeCopy full SHA for ab2f2ae
2 files changed
Firmware/FFBoard/UserExtensions/Inc/TMC4671.h
@@ -66,9 +66,9 @@ extern TIM_HandleTypeDef TIM_TMC;
66
#endif
67
68
struct Harmonic {
69
- float32_t amplitude = 0.0f;
70
- float32_t phase = 0.0f;
71
- uint16_t order = 0;
+ float32_t amplitude;
+ float32_t phase;
+ uint16_t order;
72
};
73
74
struct CoggingCalibData {
Firmware/FFBoard/UserExtensions/Src/TMC4671.cpp
@@ -158,7 +158,7 @@ void TMC4671::saveAdcParams(){
158
159
#ifdef COGGING_TABLE_FLASH_START_ADDRESS
160
void TMC4671::saveCoggingTable(){
161
- Flash_WriteCoggingTable(this->drv_address - 1, (int16_t*)this->cogging_harmonics);
+ Flash_WriteCoggingTable(this->drv_address - 1, (void*)this->cogging_harmonics);
162
}
163
164
void TMC4671::clearCoggingTable(){
0 commit comments