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

This commit is contained in:
philmoz
2025-04-25 11:17:59 +10:00
committed by GitHub
parent a43cc23526
commit 26eee4aa3e
2 changed files with 12 additions and 9 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() {}