waterloo-rocketry / cansw_processor_stm

1 stars 0 forks source link

Logger #25

Closed celery6 closed 1 week ago

celery6 commented 3 weeks ago

minor adjustments to hopefully increase certainty that logger won't overflow any buffers or get stuck.

celery6 commented 3 weeks ago

testing code:

Verify that the logs are in fact printing

image

Joe-Joe-Joe-Joe commented 3 weeks ago

Nice I can probably find time to test this in person tmr

celery6 commented 1 week ago

@Lucifersan just realized the test print uses uarttransmit not printf so this does actually print the entire buffer together.

This issue is actually just the hal_uart_transmit timeout of 500 ticks being too low since unsurprisingly it takes longer than 0.5s to transmit a book-length novel of logs :skull:

increased timeout to 3000 and it works as expected. (log buffer itself is actually fine.) we can ignore this issue

celery6 commented 1 week ago

ill clean up the testing code then this should be good to merge!

celery6 commented 1 week ago

removed testing code, also cleaned up commits. lgtm?

Lucifersan commented 1 week ago

mommy what. im gonna change that and test it lmao

Screenshot 2024-06-28 at 3 28 17 PM
celery6 commented 1 week ago

wtf I literally built and it built how tf 😭😭