Quellcode durchsuchen

Alarm Printf 제거

Alarm Test 시 Pritnf문으로 인한 알람오류
PYJ vor 4 Jahren
Ursprung
Commit
b138e43971
2 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. 7 5
      Bluecell_Src/Bluecell_operate.c
  2. 1 1
      Bluecell_Src/uart.c

+ 7 - 5
Bluecell_Src/Bluecell_operate.c

@@ -1579,7 +1579,7 @@ void MBIC_TableLoad(uint8_t* data,uint8_t type){
1579 1579
 void MBIC_TableSave(uint8_t* data,uint8_t type){
1580 1580
     uint8_t tabletype = type;
1581 1581
     
1582
-    //printf("%s : %x \r\n",__func__,tabletype);
1582
+//    printf("%s : %x \r\n",__func__,tabletype);
1583 1583
     if( data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] > 70)
1584 1584
          data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] = 70;
1585 1585
 //    printf("data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length]  : %d \r\n",sizeof(ATT_TABLE_st)  );
@@ -5242,7 +5242,7 @@ bool MBIC_Operate(uint8_t* data){
5242 5242
         SubData[i] = (data[MBIC_PROT_SUB_DATA_INDEX + 3 + i]);
5243 5243
     }*/
5244 5244
     //    SubData     임시 데이터 변수 선언 Subdata로 데이터 전송
5245
-
5245
+//    printf("%s : %d CMD : %x\r\n",__func__,__LINE__,data[MBIC_PROT_CMD_INDEX]);
5246 5246
 
5247 5247
 	data[MBIC_PREAMBLE_0] = MBIC_PREAMBLE0;
5248 5248
 	data[MBIC_PREAMBLE_1] = MBIC_PREAMBLE1;
@@ -5304,8 +5304,9 @@ bool MBIC_Operate(uint8_t* data){
5304 5304
                 break;
5305 5305
             case  Alarm_Test_Mode                         :
5306 5306
 //                printf("bluecell_Currdatastatus.ALsARM_TESTMODE : %d \r\n",bluecell_Currdatastatus.ALARM_TESTMODE);
5307
-//                printf("bluecell_Currdatastatus.ALsARM_TESTMODE : %d \r\n",data[MBIC_PAYLOADSTART + 3]);
5308 5307
                 bluecell_Currdatastatus.ALARM_TESTMODE = data[MBIC_PAYLOADSTART + 3]; 
5308
+//                printf("data[MBIC_PAYLOADSTART + 3];  : %d \r\n",data[MBIC_PAYLOADSTART + 3]);
5309
+//                printf("bluecell_Currdatastatus.ALARM_TESTMODE : %d \r\n",bluecell_Currdatastatus.ALARM_TESTMODE);
5309 5310
                 break;
5310 5311
             case  Alarm_Test_Dummy                        :
5311 5312
                 bluecell_Currdatastatus.ALARM_Test_Dummy1 = data[MBIC_PAYLOADSTART + 3]; 
@@ -5955,6 +5956,7 @@ bool MBIC_Operate(uint8_t* data){
5955 5956
        }
5956 5957
     }
5957 5958
     else if(cmd == MBIC_Table_Set){
5959
+//            printf("%s : %d \r\n",__func__,__LINE__);
5958 5960
            // protocolTableSaveReplay:
5959 5961
 //            data[MBIC_PAYLOADSTART + 1] //Reserve Data
5960 5962
             switch(data[MBIC_PAYLOADSTART + 2]){
@@ -9936,11 +9938,11 @@ void LED_Alarm_Check(){
9936 9938
         || bluecell_Currdatastatus.ALARM_Test_Dummy5         > 0)
9937 9939
         {
9938 9940
             Alarm_LED_OnSet  = true;
9939
-                          printf("%d\r\n",__LINE__);
9941
+//                          printf("%d\r\n",__LINE__);
9940 9942
         }
9941 9943
         else{
9942 9944
             Alarm_LED_OnSet = false;
9943
-                          printf("%d\r\n",__LINE__);
9945
+//                          printf("%d\r\n",__LINE__);
9944 9946
         }
9945 9947
 
9946 9948
     }

+ 1 - 1
Bluecell_Src/uart.c

@@ -168,7 +168,7 @@ void Uart1_Data_Send(uint8_t* data,uint16_t size){
168 168
   //HAL_UART_Transmit_IT(&hTerminal, &data[0],size);
169 169
 //    printf("data[278] : %x \r\n",data[278]);
170 170
 ////    HAL_Delay(1);   
171
-#if DEBUG_PRINT // PYJ.2020.07.19_BEGIN -- 
171
+#if 0 // PYJ.2020.07.19_BEGIN -- 
172 172
     printf("\r\n [TX] : ");
173 173
     for(int i = 0; i< size; i++)
174 174
         printf("%02x ",data[i]);