![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BLE fota Lamp Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_fan_control by
Diff: main.cpp
- Revision:
- 13:e714e2971c49
- Parent:
- 12:e3d3676753cc
--- a/main.cpp Wed Sep 02 07:44:29 2015 +0000 +++ b/main.cpp Tue Oct 13 06:35:19 2015 +0000 @@ -28,6 +28,9 @@ DigitalOut port19(p19);//low DigitalOut port20(p20);//high +DigitalOut port21(p21);//low +DigitalOut port22(p22);//high + uint8_t Timer_flag; uint32_t Residual_Time; @@ -45,8 +48,8 @@ if( Timer_flag == 1 && Residual_Time == 0 ) { hostpc.printf("Power off!!\n"); - if( port18 == 1 || port19 == 1 || port20 == 1 ) - port18 = port19 = port20 = 0; + if( port21 == 1 || port22 == 1 ) + port21 = port22 = 0; Timer_flag = 0; /*{ uint8_t fota_normal = 0;