PaxInstruments / PaxInstruments-LabWiz-firmware

Firmware for the Pax Instruments LabWiz board.
0 stars 1 forks source link

Convert code to use int32/uint32 #7

Closed protological closed 7 years ago

protological commented 8 years ago

Since we are on a 32bit processor, we should be using the native int format to be efficient. Some of the t400 code ported over used uint8 from Arduino,which is causing some compiler warning and casting issues.

protological commented 7 years ago

This actually turned into a bug in the code. Since we were originally using uint16s and then switched over to ints, we were overflowing the uint16 value. All uint16s have been removed in the latest t1000/t420 code. Checkout t1000.c at commit de8e5eb2ca05b0e9d56dc1546ce4560afa382439