Browse Source

1. RGB Sensor Location 관련 프로토콜 추가
2. switch break; 추가
3. Rgb Response 프로토콜 시 ID 같이 반환 할 수 있도록 수정

june9152 6 years ago
parent
commit
7336dbcc83

+ 1 - 1
.settings/language.settings.xml

@@ -4,7 +4,7 @@
4
 		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
4
 		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
5
 			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
5
 			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
6
 			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
6
 			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
7
-			<provider class="com.atollic.truestudio.mbs.GCCSpecsDetectorAtollicArm" console="false" env-hash="-840853398896664778" id="com.atollic.truestudio.mbs.provider" keep-relative-paths="false" name="Atollic ARM Tools Language Settings" parameter="${COMMAND} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
7
+			<provider class="com.atollic.truestudio.mbs.GCCSpecsDetectorAtollicArm" console="false" env-hash="157605811251204298" id="com.atollic.truestudio.mbs.provider" keep-relative-paths="false" name="Atollic ARM Tools Language Settings" parameter="${COMMAND} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
8
 				<language-scope id="org.eclipse.cdt.core.gcc"/>
8
 				<language-scope id="org.eclipse.cdt.core.gcc"/>
9
 				<language-scope id="org.eclipse.cdt.core.g++"/>
9
 				<language-scope id="org.eclipse.cdt.core.g++"/>
10
 			</provider>
10
 			</provider>

BIN
Debug/STM32F103_RGB_Controller.bin


BIN
Debug/STM32F103_RGB_Controller.binary


BIN
Debug/STM32F103_RGB_Controller.elf


File diff suppressed because it is too large
+ 4612 - 4507
Debug/STM32F103_RGB_Controller.list


File diff suppressed because it is too large
+ 510 - 506
Debug/STM32F103_RGB_Controller.map


BIN
Debug/Src/RGB_Controller.o


+ 12 - 12
Debug/Src/RGB_Controller.su

@@ -1,13 +1,13 @@
1
-RGB_Controller.c:43:10:RGB_Limit_Address_Check	0	static
2
-RGB_Controller.c:57:10:RGB_Location_Address_Check	0	static
1
+RGB_Controller.c:44:10:RGB_Limit_Address_Check	0	static
2
+RGB_Controller.c:58:10:RGB_Location_Address_Check	0	static
3
 RGB_Controller.c:17:6:RGB_Data_Init	48	static
3
 RGB_Controller.c:17:6:RGB_Data_Init	48	static
4
-RGB_Controller.c:72:6:RGB_Response_Func	128	static
5
-RGB_Controller.c:131:6:RGB_Sensor_LED_Alarm_ON	8	static
6
-RGB_Controller.c:169:6:RGB_Sensor_LED_Alarm_OFF	8	static
7
-RGB_Controller.c:208:6:RGB_Alarm_Operate	32	static
8
-RGB_Controller.c:251:9:RGB_DeviceStatusCheck	12	static
9
-RGB_Controller.c:325:9:RGB_BufCal	0	static
10
-RGB_Controller.c:298:6:RGB_Data_Stack	24	static
11
-RGB_Controller.c:224:6:RGB_Alarm_Check	104	static
12
-RGB_Controller.c:339:9:RGB_LimitData_Get	0	static
13
-RGB_Controller.c:350:6:RGB_Controller_Func	120	static
4
+RGB_Controller.c:73:6:RGB_Response_Func	24	static
5
+RGB_Controller.c:134:6:RGB_Sensor_LED_Alarm_ON	8	static
6
+RGB_Controller.c:172:6:RGB_Sensor_LED_Alarm_OFF	8	static
7
+RGB_Controller.c:211:6:RGB_Alarm_Operate	32	static
8
+RGB_Controller.c:254:9:RGB_DeviceStatusCheck	12	static
9
+RGB_Controller.c:328:9:RGB_BufCal	0	static
10
+RGB_Controller.c:301:6:RGB_Data_Stack	24	static
11
+RGB_Controller.c:227:6:RGB_Alarm_Check	104	static
12
+RGB_Controller.c:342:9:RGB_LimitData_Get	0	static
13
+RGB_Controller.c:353:6:RGB_Controller_Func	120	static

BIN
Debug/Src/main.o


+ 20 - 20
Debug/Src/main.su

@@ -1,20 +1,20 @@
1
-main.c:121:6:HAL_UART_RxCpltCallback	8	static
2
-main.c:161:6:HAL_TIM_PeriodElapsedCallback	0	static
3
-main.c:170:6:LoraDataSendSet	0	static
4
-main.c:173:9:LoraDataSendGet	0	static
5
-main.c:177:6:UartDataRecvSet	0	static
6
-main.c:180:9:UartDataRecvGet	0	static
7
-main.c:183:6:RGB_SensorIDAutoSet	0	static
8
-main.c:186:9:RGB_SensorIDAutoGet	0	static
9
-main.c:190:6:Uart2_Data_Send	0	static
10
-main.c:193:6:Uart1_Data_Send	0	static
11
-main.c:197:5:_write	8	static
12
-main.c:202:6:Uart_dataCheck	24	static
13
-main.c:231:6:RGB_Sensor_PowerOnOff	8	static
14
-main.c:385:6:test_read	24	static
15
-main.c:404:6:Flash_RGB_Data_Write	16	static
16
-main.c:417:6:Flash_write	24	static
17
-main.c:470:6:Flash_InitRead	12	static
18
-main.c:668:6:SystemClock_Config	72	static
19
-main.c:508:5:main	112	static
20
-main.c:942:6:Error_Handler	0	static
1
+main.c:131:6:HAL_UART_RxCpltCallback	8	static
2
+main.c:176:6:HAL_TIM_PeriodElapsedCallback	0	static
3
+main.c:185:6:LoraDataSendSet	0	static
4
+main.c:188:9:LoraDataSendGet	0	static
5
+main.c:192:6:UartDataRecvSet	0	static
6
+main.c:195:9:UartDataRecvGet	0	static
7
+main.c:198:6:RGB_SensorIDAutoSet	0	static
8
+main.c:201:9:RGB_SensorIDAutoGet	0	static
9
+main.c:205:6:Uart2_Data_Send	0	static
10
+main.c:208:6:Uart1_Data_Send	0	static
11
+main.c:212:5:_write	8	static
12
+main.c:248:6:Uart_dataCheck	24	static
13
+main.c:280:6:RGB_Sensor_PowerOnOff	8	static
14
+main.c:434:6:test_read	24	static
15
+main.c:453:6:Flash_RGB_Data_Write	16	static
16
+main.c:466:6:Flash_write	24	static
17
+main.c:519:6:Flash_InitRead	12	static
18
+main.c:751:6:SystemClock_Config	72	static
19
+main.c:557:5:main	296	static
20
+main.c:1025:6:Error_Handler	0	static

+ 15 - 9
Src/RGB_Controller.c

@@ -39,6 +39,7 @@ void RGB_Data_Init(void){
39
         printf("RGB_SensorGreenLimit_Buf[%d]  :  %04x\n",i,RGB_SensorGreenLimit_Buf[i]);
39
         printf("RGB_SensorGreenLimit_Buf[%d]  :  %04x\n",i,RGB_SensorGreenLimit_Buf[i]);
40
         printf("RGB_SensorBlueLimit_Buf[%d]   :  %04x\n",i,RGB_SensorBlueLimit_Buf[i]);    
40
         printf("RGB_SensorBlueLimit_Buf[%d]   :  %04x\n",i,RGB_SensorBlueLimit_Buf[i]);    
41
     }
41
     }
42
+
42
 }
43
 }
43
 uint16_t RGB_Limit_Address_Check(uint8_t id){
44
 uint16_t RGB_Limit_Address_Check(uint8_t id){
44
     uint16_t ret = 0;
45
     uint16_t ret = 0;
@@ -71,7 +72,7 @@ uint16_t RGB_Location_Address_Check(uint8_t id){
71
 
72
 
72
 void RGB_Response_Func(uint8_t* data){

73
 void RGB_Response_Func(uint8_t* data){

73
 	RGB_CMD_T type = data[bluecell_type];
74
 	RGB_CMD_T type = data[bluecell_type];
74
-    uint8_t temp_data[100] = {0,};
75
+    uint16_t temp  = 0;
75
 #if 0
76
 #if 0
76
 for(uint8_t i = 0; i < 10; i++){
77
 for(uint8_t i = 0; i < 10; i++){
77
             printf("%02x ",data[i]);
78
             printf("%02x ",data[i]);
@@ -105,18 +106,20 @@ for(uint8_t i = 0; i < 10; i++){
105
         case RGB_Reset:
106
         case RGB_Reset:
106
         case RGB_SensorID_SET_Success:
107
         case RGB_SensorID_SET_Success:
107
         case RGB_ID_Allocate_Request:
108
         case RGB_ID_Allocate_Request:
108
-            case RGB_Lora_Data_Report:
109
+        case RGB_Lora_Data_Report:
109
             break;
110
             break;
110
         case RGB_Location_Report:
111
         case RGB_Location_Report:
111
-            M24C32_Data_Write(&hi2c2,&data[Location_stx],RGB_Location_Address_Check(data[data[bluecell_length]]),data[bluecell_length] + 3); // EEPROM Controller ID Save 
112
+            M24C32_Data_Write(&hi2c2,&data[Location_stx],RGB_Location_Address_Check(data[bluecell_srcid]),data[bluecell_length] + 3); // EEPROM Controller ID Save 
112
             break;
113
             break;
113
         case RGB_Location_Response:
114
         case RGB_Location_Response:
114
-            temp_data[bluecell_length] = M24C32_Data_Read(&hi2c2,RGB_Location_Address_Check(data[bluecell_dstid]) + 2); // EEPROM Controller ID Save 
115
-            for(uint8_t i = 0; i < temp_data[bluecell_length] + 3; i++)
116
-                temp_data[i] = M24C32_Data_Read(&hi2c2,RGB_Location_Address_Check(data[bluecell_dstid]) + i); // EEPROM Controller ID Save 
117
-            temp_data[bluecell_type] = RGB_Location_Response;
118
-            temp_data[temp_data[bluecell_length] + 1] = STH30_CreateCrc(&temp_data[bluecell_type],temp_data[bluecell_length]);
119
-            Uart1_Data_Send(temp_data,temp_data[bluecell_length] + 3);    
115
+            data[bluecell_length] = M24C32_Data_Read(&hi2c2,RGB_Location_Address_Check(data[bluecell_dstid]) + 2); // EEPROM Controller ID Save 
116
+            temp = RGB_Location_Address_Check(data[bluecell_srcid]);
117
+            for(uint8_t i = 0; i < (data[bluecell_length] + 3); i++){
118
+                data[i] = M24C32_Data_Read(&hi2c2,(temp + i)); // EEPROM Controller ID Save 
119
+            }
120
+            data[bluecell_type] = RGB_Location_Response;
121
+            data[data[bluecell_length] + 1] = STH30_CreateCrc(&data[bluecell_type],data[bluecell_length]);
122
+            Uart1_Data_Send(data,data[bluecell_length] + 3);    
120
             break;
123
             break;
121
          case RGB_ControllerID_GET:
124
          case RGB_ControllerID_GET:
122
              Uart1_Data_Send(data,data[bluecell_length] + 3);
125
              Uart1_Data_Send(data,data[bluecell_length] + 3);
@@ -397,7 +400,10 @@ void RGB_Controller_Func(uint8_t* data){
397
             break;
400
             break;
398
         case RGB_Location_Report:
401
         case RGB_Location_Report:
399
             memcpy(&Result_buf[bluecell_stx],&data[bluecell_stx],data[bluecell_length] + 3);
402
             memcpy(&Result_buf[bluecell_stx],&data[bluecell_stx],data[bluecell_length] + 3);
403
+            break;
400
         case RGB_Location_Response:
404
         case RGB_Location_Response:
405
+            Result_buf[bluecell_type] = RGB_Location_Response;
406
+            Result_buf[bluecell_srcid] = data[bluecell_srcid];
401
             break;
407
             break;
402
         case RGB_ControllerID_GET:
408
         case RGB_ControllerID_GET:
403
             Result_buf[bluecell_stx]         = 0xbe;
409
             Result_buf[bluecell_stx]         = 0xbe;

+ 95 - 12
Src/main.c

@@ -75,9 +75,9 @@ uint8_t rx2_data[1];
75
 
75
 
76
 
76
 
77
 uint8_t ring_buf[buf_size];
77
 uint8_t ring_buf[buf_size];
78
-uint8_t count_in1 = 0;//, count_out = 0;
79
-uint8_t count_in2 = 0;//, count_out = 0;
80
-uint8_t count_in3 = 0, count_out = 0;
78
+uint8_t count_in1 = 0, count_out1 = 0;
79
+uint8_t count_in2 = 0, count_out2 = 0;
80
+//uint8_t count_in3 = 0, count_out = 0;
81
 
81
 
82
 
82
 
83
 uint8_t UartDataisReved;
83
 uint8_t UartDataisReved;
@@ -91,6 +91,10 @@ volatile uint32_t LoraTxTimerCnt = 0;
91
 
91
 
92
 
92
 
93
 uint8_t buf[buf_size] = {0,};
93
 uint8_t buf[buf_size] = {0,};
94
+uint8_t buf1[buf_size] = {0,};
95
+uint8_t buf2[buf_size] = {0,};
96
+
97
+
94
 
98
 
95
 uint8_t MyControllerID = 0;
99
 uint8_t MyControllerID = 0;
96
 uint8_t  SensorID = 0;
100
 uint8_t  SensorID = 0;
@@ -109,7 +113,12 @@ static void MX_NVIC_Init(void);
109
 void RGB_SensorIDAutoSet(uint8_t set);
113
 void RGB_SensorIDAutoSet(uint8_t set);
110
 uint8_t RGB_SensorIDAutoGet(void);
114
 uint8_t RGB_SensorIDAutoGet(void);
111
 void UartDataRecvSet(uint8_t val);
115
 void UartDataRecvSet(uint8_t val);
116
+#if 0 // PYJ.2019.04.19_BEGIN -- 
112
 void Uart_dataCheck(uint8_t* cnt);
117
 void Uart_dataCheck(uint8_t* cnt);
118
+#else
119
+void Uart_dataCheck(uint8_t*,uint8_t* cnt);
120
+
121
+#endif // PYJ.2019.04.19_END -- 
113
 void Uart1_Data_Send(uint8_t* data,uint8_t size);
122
 void Uart1_Data_Send(uint8_t* data,uint8_t size);
114
 /* USER CODE END PFP */
123
 /* USER CODE END PFP */
115
 
124
 
@@ -118,24 +127,30 @@ void Uart1_Data_Send(uint8_t* data,uint8_t size);
118
 
127
 
119
 
128
 
120
 
129
 
130
+
121
 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
131
 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
122
 {
132
 {
123
     if(huart->Instance == USART1)//RGB Comunication 
133
     if(huart->Instance == USART1)//RGB Comunication 
124
     {
134
     {
125
-        buf[count_in1] = rx1_data[0];//(uint8_t)USART2->DR;
135
+        buf1[count_in1] = rx1_data[0];//(uint8_t)USART2->DR;
136
+         if(++count_in1>=buf_size){ count_in1 = 0; }
126
 //        printf("data %02x \r\n",rx1_data[0]);
137
 //        printf("data %02x \r\n",rx1_data[0]);
138
+#if 0 // PYJ.2019.04.19_BEGIN -- 
127
         if(buf[count_in1++] == 0xEB){
139
         if(buf[count_in1++] == 0xEB){
128
             if(buf[bluecell_length] == (count_in1 - 3))
140
             if(buf[bluecell_length] == (count_in1 - 3))
129
                 UartDataRecvSet(1);
141
                 UartDataRecvSet(1);
130
             else
142
             else
131
                 count_in1 = 0;
143
                 count_in1 = 0;
132
         }
144
         }
145
+#endif // PYJ.2019.04.19_END -- 
133
         HAL_UART_Receive_IT(&huart1,&rx1_data[0],1);
146
         HAL_UART_Receive_IT(&huart1,&rx1_data[0],1);
134
     }
147
     }
135
     if(huart->Instance == USART2) // Lora?? ?†µ?‹ ?•˜?Š” ?¬?Џ
148
     if(huart->Instance == USART2) // Lora?? ?†µ?‹ ?•˜?Š” ?¬?Џ
136
     {
149
     {
137
-        buf[count_in2] = rx2_data[0];//(uint8_t)USART2->DR;
138
-//        if(buf[count_in++] == 0xEB)UartDataRecvSet(1);
150
+        buf2[count_in2] = rx2_data[0];//(uint8_t)USART2->DR;
151
+        if(++count_in2>=buf_size){ count_in2 = 0; }
152
+//      if(buf[count_in++] == 0xEB)UartDataRecvSet(1);
153
+#if 0 // PYJ.2019.04.19_BEGIN -- 
139
         if(buf[count_in2++] == 0xEB){
154
         if(buf[count_in2++] == 0xEB){
140
             if(buf[bluecell_length] == (count_in2 - 3))
155
             if(buf[bluecell_length] == (count_in2 - 3))
141
                 UartDataRecvSet(2);
156
                 UartDataRecvSet(2);
@@ -143,7 +158,7 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
143
                 count_in1 = 0;
158
                 count_in1 = 0;
144
 //                printf("UART 2 %d",((count_in2 -1) - 3));
159
 //                printf("UART 2 %d",((count_in2 -1) - 3));
145
         }
160
         }
146
-
161
+#endif // PYJ.2019.04.19_END -- 
147
         HAL_UART_Receive_IT(&huart2,&rx2_data[0],1);
162
         HAL_UART_Receive_IT(&huart2,&rx2_data[0],1);
148
     }
163
     }
149
 #if 0 // PYJ.2019.04.13_BEGIN -- 
164
 #if 0 // PYJ.2019.04.13_BEGIN -- 
@@ -199,6 +214,7 @@ int _write (int file, uint8_t *ptr, uint16_t len)
199
     HAL_UART_Transmit (&huart1, ptr, len, 10); 
214
     HAL_UART_Transmit (&huart1, ptr, len, 10); 
200
     return len;
215
     return len;
201
 }
216
 }
217
+#if 0 // PYJ.2019.04.19_BEGIN -- 
202
 void Uart_dataCheck(uint8_t* cnt){
218
 void Uart_dataCheck(uint8_t* cnt){
203
 
219
 
204
     etError crccheck = 0;
220
     etError crccheck = 0;
@@ -228,6 +244,39 @@ void Uart_dataCheck(uint8_t* cnt){
228
     
244
     
229
     memset(buf,0x00,buf_size);
245
     memset(buf,0x00,buf_size);
230
 }
246
 }
247
+#else
248
+void Uart_dataCheck(uint8_t* Que_Buf,uint8_t* cnt){
249
+
250
+    etError crccheck = 0;
251
+#if 0
252
+    for(uint8_t i = 0; i < (* cnt); i++){
253
+        printf("%02x ",buf[i]);
254
+    }
255
+        printf("\r\n");
256
+#endif  
257
+
258
+    crccheck = STH30_CheckCrc(&Que_Buf[bluecell_type],Que_Buf[bluecell_length],Que_Buf[Que_Buf[bluecell_length] + 1]);
259
+    if(crccheck == CHECKSUM_ERROR){
260
+        for(uint8_t i = 0; i < (*cnt); i++){
261
+            printf("%02x ",Que_Buf[i]);
262
+        }
263
+        printf("Original CRC : %02x RecvCRC : %02x \r\n",crccheck,Que_Buf[Que_Buf[bluecell_length] + 1]);
264
+    }
265
+    else if(crccheck == NO_ERROR){
266
+        RGB_Controller_Func(&Que_Buf[bluecell_stx]);
267
+    }
268
+    else{
269
+         printf("What Happen?\r\n");
270
+        /*NOP*/
271
+    }
272
+
273
+    //*cnt = 0;
274
+    
275
+    memset(Que_Buf,0x00,buf_size);
276
+}
277
+
278
+
279
+#endif // PYJ.2019.04.19_END -- 
231
 void RGB_Sensor_PowerOnOff(uint8_t id){
280
 void RGB_Sensor_PowerOnOff(uint8_t id){
232
     printf("%d Power ON \r\n",id);
281
     printf("%d Power ON \r\n",id);
233
 
282
 
@@ -588,7 +637,9 @@ int main(void)
588
    }
637
    }
589
 #endif // PYJ.2019.04.16_END -- 
638
 #endif // PYJ.2019.04.16_END -- 
590
      
639
      
591
-
640
+    uint8_t data1[100]= {0,};
641
+    uint8_t data2[100]= {0,};
642
+    uint8_t uartrecv1=0,uartrecv2=0,cnt1 = 0,cnt2=0;
592
   while (1)
643
   while (1)
593
   {
644
   {
594
      if(LoraTxTimerCnt > LORA_TIMER_CNT){
645
      if(LoraTxTimerCnt > LORA_TIMER_CNT){
@@ -607,7 +658,7 @@ int main(void)
607
 //        printf("%02x ",buffer[i]);
658
 //        printf("%02x ",buffer[i]);
608
 //        printf("\n");
659
 //        printf("\n");
609
     }else {
660
     }else {
610
-            HAL_Delay(1);
661
+//            HAL_Delay(1);
611
            ret = SX1276_LoRaRxPacket(&SX1276);
662
            ret = SX1276_LoRaRxPacket(&SX1276);
612
            if (ret > 0) {
663
            if (ret > 0) {
613
                SX1276_read(&SX1276, &buffer[0], ret);
664
                SX1276_read(&SX1276, &buffer[0], ret);
@@ -618,15 +669,47 @@ int main(void)
618
            }
669
            }
619
        
670
        
620
        }
671
        }
672
+    
673
+     if(count_in1 != count_out1){ // <------- 
674
+        data1[cnt1++] = buf1[count_out1++];
675
+        if(count_out1 >= 100){ count_out1 = 0; }
676
+        UartTimerCnt = 0;
677
+//        uartrecv1 = 1;
678
+        UartDataRecvSet(1);
679
+    }
680
+    if(count_in2 != count_out2){ // <------- 
681
+         data2[cnt2++] = buf2[count_out2++];
682
+         if(count_out2 >= 100){ count_out2 = 0; }
683
+         UartTimerCnt = 0;
684
+//         uartrecv2 = 1;
685
+         UartDataRecvSet(2);
686
+
687
+    }
688
+#if 0 // PYJ.2019.04.19_BEGIN -- 
621
     uartdatarecv = UartDataRecvGet(); 
689
     uartdatarecv = UartDataRecvGet(); 
622
     if(uartdatarecv != 0){
690
     if(uartdatarecv != 0){
623
         if(uartdatarecv == 1){
691
         if(uartdatarecv == 1){
624
-            Uart_dataCheck(&count_in1);
692
+            Uart_dataCheck(data1,&count_in1);
625
         }else if(uartdatarecv == 2){
693
         }else if(uartdatarecv == 2){
626
-            Uart_dataCheck(&count_in2);
694
+            Uart_dataCheck(data2,&count_in2);
627
         }  
695
         }  
628
         UartDataRecvSet(0);
696
         UartDataRecvSet(0);
629
     }
697
     }
698
+#endif // PYJ.2019.04.19_END -- 
699
+    uartdatarecv = UartDataRecvGet(); 
700
+
701
+    if(uartdatarecv == 1 && UartTimerCnt > 100){
702
+        cnt1 = 0;
703
+        UartDataRecvSet(0);
704
+        Uart_dataCheck(&data1[0],&count_in1);
705
+        memset(&data1[0],0,100);
706
+    }
707
+    if(uartdatarecv == 2 && UartTimerCnt > 100){
708
+        cnt2 = 0;
709
+        UartDataRecvSet(0);
710
+        Uart_dataCheck(&data2[0],&count_in2);
711
+        memset(&data2[0],0,100);
712
+    }
630
     else{
713
     else{
631
         if(LedTimerCnt > 500){
714
         if(LedTimerCnt > 500){
632
             if(RGB_SensorIDAutoGet() == 1){
715
             if(RGB_SensorIDAutoGet() == 1){
@@ -648,7 +731,7 @@ int main(void)
648
                 if(temp_sensorid > (SensorID_Cnt)){
731
                 if(temp_sensorid > (SensorID_Cnt)){
649
                     temp_sensorid = 0;
732
                     temp_sensorid = 0;
650
                 }
733
                 }
651
-                 RGB_Controller_Func(&StatusRequest_data[bluecell_stx]);
734
+                RGB_Controller_Func(&StatusRequest_data[bluecell_stx]);
652
             }
735
             }
653
             HAL_GPIO_TogglePin(GPIOC,GPIO_PIN_15);
736
             HAL_GPIO_TogglePin(GPIOC,GPIO_PIN_15);
654
             LedTimerCnt = 0;
737
             LedTimerCnt = 0;