Buford_T_Justice

joined 2 years ago
[–] Buford_T_Justice@reddthat.com 1 points 2 months ago

The way I have done it in the past. Rearrange all struct members from the largest to smallest data size. Do a sizeof the struct to make sure it is what you expect. You can look at the memory map too if your compiler provides it. Point an unsigned char (uint8_t) pointer to the first member of the struct or the variable name of the struct casted as a uint8_t. Then move the data into whatever the EEPROM or flash pages the data needs using the sizeof the struct and the size of the page for the non volatile storage. Sometimes I make a temporary array of the structs if I'm going to do several on a page. Then either copy directly into my ram overlay or just return the data if it is like a lookup or whatever.

[–] Buford_T_Justice@reddthat.com 9 points 3 months ago (2 children)

We REALLY need to stop letting football coaches teach history in public education.

[–] Buford_T_Justice@reddthat.com 4 points 6 months ago

I'll have to remember that for next time I'm in Canton.

[–] Buford_T_Justice@reddthat.com 18 points 6 months ago (14 children)

Because all the people taking it for COVID (and probably trying to cure cancer) were not getting it from the doctor. They were getting it from Farm supply stores . Everyone was calling it horse dewormer because that's what it was. They were not going to get a prescription. I know because I live amongst these dummies that were asking on Facebook which one to get from the farm supply, what flavor was best, etc.

[–] Buford_T_Justice@reddthat.com 8 points 7 months ago

Fuck the TSA it's a jobs program. They are so goddamn worthless.

[–] Buford_T_Justice@reddthat.com 1 points 8 months ago (1 children)

The trade is unfair though. If I pay you $10 an hour for some widget you produce. I turn around and sell that widget for $1000. You have made $80 for the day of work and I have made $920. I'm not sharing that $920 with you though. Even though you produced a widget that is worth $1000 you will never realize the "full" worth of your work you will get $10 per hour. If you were paid what you were worth there would be no profit in it for someone to employ you.

[–] Buford_T_Justice@reddthat.com 5 points 9 months ago

Google will soon owe Russia a googol

[–] Buford_T_Justice@reddthat.com 29 points 9 months ago (1 children)

Is this before or after you ate it?

[–] Buford_T_Justice@reddthat.com 7 points 10 months ago

William Daniels. Holy shit he's still alive 97 years old. He's been married to the same person for 73 years wtf!

[–] Buford_T_Justice@reddthat.com 1 points 11 months ago

I wasn't sure how to pronounce xi. I have been calling it sheeeter like Ren from Ren and stimpy.

[–] Buford_T_Justice@reddthat.com 6 points 11 months ago

I call those the safety farts.

view more: next ›