Sungwoo Kim
/
HydraulicControlBoard_Learning
for learning
Diff: CAN/function_CAN.cpp
- Revision:
- 180:02be1711ee0b
- Parent:
- 177:8e9cf31d63f4
- Child:
- 192:637092202815
--- a/CAN/function_CAN.cpp Mon Dec 14 05:27:22 2020 +0000 +++ b/CAN/function_CAN.cpp Tue Dec 15 00:19:25 2020 +0000 @@ -496,7 +496,7 @@ case CRX_SET_ENC_PULSE_PER_POSITION: { ENC_PULSE_PER_POSITION = (int16_t) (msg.data[1] | msg.data[2] << 8); // ROM_RESET_DATA(); - spi_eeprom_write(RID_ENC_PULSE_PER_POSITION, (int16_t) (ENC_PULSE_PER_POSITION*10.0f)); + spi_eeprom_write(RID_ENC_PULSE_PER_POSITION, (int16_t) (ENC_PULSE_PER_POSITION)); break; }