Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2019-11-30 00:00:00Z and 2019-12-01 00:00:00Z
Avatar
In the last post of the series I explained how to get started programming an STM32 microcontroller without any library dependencies. Today we will improve the LED blinking example from last post with the CMSIS library, making it more readable and adding precise timings. Final...
Avatar
ChillerDragon 2019-11-30 15:02:32Z
Any idea why fread behaves differently in my own c or c++ script than in tw code? https://cdn.discordapp.com/attachments/359445290941415426/650349380255088650/unknown.png left side produces: magic='FNG' right side produces: fread failed magic='�9i��' (edited)
Avatar
uninitialized memory?
Avatar
ChillerDragon 2019-11-30 15:09:25Z
ye seems like
15:09
but why does fread fail?
Avatar
ChillerDragon 2019-11-30 15:35:05Z
Oh i got it 🙂 the same file was open for a write in a different function at the same time. Did not know that this causes trouble could have expected that tho.
Avatar
platform-specific to windows
21:15
oh wait
21:15
if you open a file for "writing", you truncate it (i.e. it will be empty)
Exported 11 message(s)