dome icon indicating copy to clipboard operation
dome copied to clipboard

Plugin: DOME_Color.value seems to be ordered as 0xAABBGGRR but docs say It's 0xAARRGGBB

Open trelemar opened this issue 4 years ago • 6 comments

trelemar avatar Jan 12 '22 23:01 trelemar

That's probably just me messing up the order (byte order is always confusing). The only other reason it might be wrong is if your device is a different "endianness" to standard, but that would have resulted in many more problems.

avivbeeri avatar Jan 13 '22 00:01 avivbeeri

Following up on this, can you check your device architecture for me, so we can figure out which option is correct? Thanks :)

avivbeeri avatar Feb 13 '22 16:02 avivbeeri

This was on lubuntu 64 bit. I will test with other architectures and try to replicate as well

trelemar avatar Feb 13 '22 18:02 trelemar

It's more about the processor than operating system: ARM, AMD and Intel chips all use different byte arrangements in memory. I may have just messed it up on my end when documenting it though.

avivbeeri avatar Mar 02 '22 13:03 avivbeeri

I've corrected the docs for this, I just need to double check that the DOME_Color struct is correct too.

avivbeeri avatar Feb 20 '23 14:02 avivbeeri