File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class MbedCRC {
146
146
* @param crc CRC is the output value
147
147
* @return 0 on success, negative error code on failure
148
148
*/
149
- int32_t compute (void *buffer, crc_data_size_t size, uint32_t *crc)
149
+ int32_t compute (const void *buffer, crc_data_size_t size, uint32_t *crc)
150
150
{
151
151
MBED_ASSERT (crc != NULL );
152
152
int32_t status = 0 ;
@@ -193,14 +193,14 @@ class MbedCRC {
193
193
* @note: CRC as output in compute_partial is not final CRC value, call `compute_partial_stop`
194
194
* to get final correct CRC value.
195
195
*/
196
- int32_t compute_partial (void *buffer, crc_data_size_t size, uint32_t *crc)
196
+ int32_t compute_partial (const void *buffer, crc_data_size_t size, uint32_t *crc)
197
197
{
198
198
int32_t status = 0 ;
199
199
200
200
switch (_mode) {
201
201
#if DEVICE_CRC
202
202
case HARDWARE:
203
- hal_crc_compute_partial (( uint8_t *) buffer, size);
203
+ hal_crc_compute_partial (static_cast < const uint8_t *>( buffer) , size);
204
204
*crc = 0 ;
205
205
break ;
206
206
#endif
You can’t perform that action at this time.
0 commit comments