ArduPilot / SiK

Tools and firmware for the Si1000
BSD 2-Clause "Simplified" License
279 stars 229 forks source link

SDCC Compiler Version >=4.03 #67

Open aabouman opened 3 years ago

aabouman commented 3 years ago

make install fails with newer versions of SDCC. From the page 11 of the SDCC documentation, "In 4.0.3, _itoa, _uitoa, _ltoa, _ultoa were renamed to itoa, uitoa, ltoa, ultoa."

aabouman commented 3 years ago

For those having similar issues replacing lines 165-169 of printfs.c with

if (unsigned_flag) {
    __ultoa(val, buffer, radix);
} else {
    __ltoa(val, buffer, radix);
}

did the trick for me

booo commented 2 years ago

Can you create a pull request for this?

kaklik commented 1 year ago

That seems to be resolved and merged. Close it, please.