chore(simulator): fix build of simulator libraries (#6138)
This commit is contained in:
@@ -23,20 +23,11 @@
|
|||||||
#include "hal/rgbleds.h"
|
#include "hal/rgbleds.h"
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
|
|
||||||
#if defined(SIMU)
|
|
||||||
#define __weak
|
|
||||||
#elif !defined(__weak)
|
|
||||||
#define __weak __attribute__((weak))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool usbChargerLed() { return true; }
|
bool usbChargerLed() { return true; }
|
||||||
void ledRed() {}
|
void ledRed() {}
|
||||||
void ledGreen() {}
|
void ledGreen() {}
|
||||||
void ledBlue() {}
|
void ledBlue() {}
|
||||||
void ledOff() {}
|
void ledOff() {}
|
||||||
__weak void fsLedOn(uint8_t) {}
|
|
||||||
__weak void fsLedOff(uint8_t) {}
|
|
||||||
__weak void fsLedRGB(uint8_t, uint32_t) {}
|
|
||||||
bool fsLedState(uint8_t) { return false;}
|
bool fsLedState(uint8_t) { return false;}
|
||||||
void rgbSetLedColor(unsigned char, unsigned char, unsigned char, unsigned char) {}
|
void rgbSetLedColor(unsigned char, unsigned char, unsigned char, unsigned char) {}
|
||||||
void rgbLedColorApply() {}
|
void rgbLedColorApply() {}
|
||||||
|
|||||||
@@ -88,6 +88,18 @@ void firmwareTraceCb(const char * text)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fsLedRGB(uint8_t idx, uint32_t color)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void fsLedOn(uint8_t idx)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void fsLedOff(uint8_t idx)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// Serial port handling needs to know about OpenTxSimulator, so we we
|
// Serial port handling needs to know about OpenTxSimulator, so we we
|
||||||
// need to update what's in simpgmspace.cpp when we have a simulator
|
// need to update what's in simpgmspace.cpp when we have a simulator
|
||||||
// to point at.
|
// to point at.
|
||||||
|
|||||||
Reference in New Issue
Block a user