chore(simulator): fix build of simulator libraries (#6142)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
Peter Feerick
2025-04-25 12:55:39 +10:00
committed by GitHub
co-authored by philmoz
parent 9c1afbec78
commit c04fb9fdd4
4 changed files with 24 additions and 16 deletions
-9
View File
@@ -23,20 +23,11 @@
#include "hal/rgbleds.h"
#include "definitions.h"
#if defined(SIMU)
#define __weak
#elif !defined(__weak)
#define __weak __attribute__((weak))
#endif
bool usbChargerLed() { return true; }
void ledRed() {}
void ledGreen() {}
void ledBlue() {}
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;}
void rgbSetLedColor(unsigned char, unsigned char, unsigned char, unsigned char) {}
void rgbLedColorApply() {}