Hackathone session: bugfixes and documentation update (#869)
* ReadMe: update flashing scripts section * Furi: add record exists method to record store. * FuriHal: early OS init and i2c timeouts based on os ticks. * Storage: replace malloc with furi_alloc, fix errors found by pvs. * iButton: properly handle shutdown in cli search command * SubGhz: proper argument type in sscanf and incorrect position of logging in switch.
This commit is contained in:
@@ -405,7 +405,7 @@ BSP_SD_ReadBlocks(uint32_t* pData, uint32_t ReadAddr, uint32_t NumOfBlocks, uint
|
||||
goto error;
|
||||
}
|
||||
|
||||
ptr = malloc(sizeof(uint8_t) * BlockSize);
|
||||
ptr = furi_alloc(sizeof(uint8_t) * BlockSize);
|
||||
if(ptr == NULL) {
|
||||
goto error;
|
||||
}
|
||||
@@ -483,7 +483,7 @@ BSP_SD_WriteBlocks(uint32_t* pData, uint32_t WriteAddr, uint32_t NumOfBlocks, ui
|
||||
goto error;
|
||||
}
|
||||
|
||||
ptr = malloc(sizeof(uint8_t) * BlockSize);
|
||||
ptr = furi_alloc(sizeof(uint8_t) * BlockSize);
|
||||
if(ptr == NULL) {
|
||||
goto error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user