mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-20 00:32:37 +01:00
fix warning: implicit declaration of function 'Shutter_MoveByIndex' [-Wimplicit-function-declaration] etc
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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__ */
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user