fix warning: implicit declaration of function 'Shutter_MoveByIndex' [-Wimplicit-function-declaration] etc

This commit is contained in:
Tester23
2025-12-22 21:16:46 +01:00
parent 0af4f2a81c
commit 0b75890f08
3 changed files with 4 additions and 1 deletions

View File

@@ -20,7 +20,6 @@ void DRV_Shutters_RunEverySecond();
void DRV_Shutters_AddToHtmlPage(http_request_t *request, int bPreState);
void DRV_Shutters_Init();
void DRV_Shutters_DoDiscovery(const char *topic);
void Shutter_MoveByIndex(int index, float frac);
void BMP280_Init();
void BMP280_OnEverySecond();

View File

@@ -87,6 +87,7 @@ bool DRV_IsSensor();
void TuyaMCU_OnRGBCWChange(const float *rgbcw, int bLightEnableAll, int iLightMode, float brightnessRange01, float temperatureRange01);
bool TuyaMCU_IsLEDRunning();
void Shutter_MoveByIndex(int index, float frac);
#endif /* __DRV_PUBLIC_H__ */

View File

@@ -12,6 +12,9 @@ void Test_Shutters() {
PIN_SetPinRoleForPinIndex(4, IOR_ShutterA);
PIN_SetPinRoleForPinIndex(5, IOR_ShutterB);
PIN_SetPinRoleForPinIndex(6, IOR_Button_ShutterUp);
PIN_SetPinRoleForPinIndex(7, IOR_Button_ShutterDown);
CMD_ExecuteCommand("startDriver Shutters", 0);
SELFTEST_ASSERT_PIN_BOOLEAN(4, false);
SELFTEST_ASSERT_PIN_BOOLEAN(5, false);