Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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; }