badgeteam / mch2022-firmware-esp32

ESP32 launcher firmware for the MCH2022 badge
https://docs.badge.team
MIT License
13 stars 9 forks source link

Add malloc error checks, avoid double allocation of data block #158

Closed sylefeb closed 11 months ago

sylefeb commented 11 months ago

This PR includes the following:

smunaut commented 11 months ago

Err, no ... don't try to fit the header from fpga_req in there, it's an ugly mixing of abstraction layer for nothing .. the overhead of the malloc is negligible ...

Also this should be split in several commits.

sylefeb commented 11 months ago
smunaut commented 11 months ago

Yeah, I would add a field saying if data needs freeing or not.

sylefeb commented 11 months ago

Noted, closing, will send new PR.

smunaut commented 11 months ago

you know you can just force push to the same branch to update the existing PR :)

sylefeb commented 11 months ago

I did not :) I tried, option to reopen is grayed out though?

smunaut commented 11 months ago

Yeah, that works when the PR is open, probably should have re-opened it before the force push, now it seems locked ... ah well, next time :sweat_smile:

sylefeb commented 11 months ago

Created a different one, good to know in any case!