mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 23:48:31 -04:00
7098e8cfa1
this allows ArduPlane to build and startup on 'desktop' systems (eg. a Linux box). Very rough for now, and only for HIL so far
13 lines
227 B
C
13 lines
227 B
C
#include <stdio.h>
|
|
|
|
char * __ultoa_invert(unsigned long val, char *s, int base)
|
|
{
|
|
switch (base) {
|
|
case 8:
|
|
return s+sprintf(s, "%lo", val);
|
|
case 16:
|
|
return s+sprintf(s, "%lx", val);
|
|
}
|
|
return s+sprintf(s, "%lu", val);
|
|
}
|