@@ -594,11 +594,11 @@ void loop() {
594594 // -------------------
595595 strCmd = sc_data.getCmd ();
596596
597- if (strcmpi (strCmd, " id?" ) == 0 ) {
597+ if (strcmp (strCmd, " id?" ) == 0 ) {
598598 // Reply identity string
599599 Ser_data.println (" Arduino lock-in amp" );
600600
601- } else if (strcmpi (strCmd, " mcu?" ) == 0 ) {
601+ } else if (strcmp (strCmd, " mcu?" ) == 0 ) {
602602 // Reply microcontroller type string
603603 #if defined(__SAMD21G18A__)
604604 Ser_data.println (" SAMD21G18A" );
@@ -614,13 +614,13 @@ void loop() {
614614 Ser_data.println (" unknown MCU" );
615615 #endif
616616
617- } else if (strcmpi (strCmd, " mcu_uid?" ) == 0 ) {
617+ } else if (strcmp (strCmd, " mcu_uid?" ) == 0 ) {
618618 // Reply microcontroller unique identifier (serial) number
619619 uint8_t mcu_uid[MCU_UID_LENGTH];
620620 get_mcu_uid (mcu_uid);
621621 print_hex_8 (Ser_data, mcu_uid, MCU_UID_LENGTH);
622622
623- } else if (strcmpi (strCmd, " bias?" ) == 0 ) {
623+ } else if (strcmp (strCmd, " bias?" ) == 0 ) {
624624 #if defined (__SAMD51__)
625625 Ser_data.println (NVM_ADC0_BIASCOMP);
626626 Ser_data.println (NVM_ADC0_BIASREFBUF);
@@ -634,7 +634,7 @@ void loop() {
634634 Ser_data.println (ADC0->GAINCORR .bit .GAINCORR );
635635 #endif
636636
637- } else if (strcmpi (strCmd, " config?" ) == 0 ) {
637+ } else if (strcmp (strCmd, " config?" ) == 0 ) {
638638 Ser_data.print (ISR_CLOCK);
639639 Ser_data.print (' \t ' );
640640 Ser_data.print (BUFFER_SIZE);
@@ -660,15 +660,15 @@ void loop() {
660660 print_debug_info ();
661661 #endif
662662
663- } else if (strcmpi (strCmd, " off" ) == 0 ) {
663+ } else if (strcmp (strCmd, " off" ) == 0 ) {
664664 // Lock-in amp is already off and we reply with an acknowledgement
665665 Ser_data.print (" already_off\n " );
666666
667667 #ifdef DEBUG
668668 Ser_debug << " Already OFF" << endl;
669669 # endif
670670
671- } else if (strcmpi (strCmd, " on" ) == 0 ) {
671+ } else if (strcmp (strCmd, " on" ) == 0 ) {
672672 // Start lock-in amp
673673 noInterrupts ();
674674 fRunning = true ;
@@ -684,7 +684,7 @@ void loop() {
684684 Ser_debug << " ON" << endl;
685685 # endif
686686
687- } else if (strncmpi (strCmd, " ref_freq" , 8 ) == 0 ) {
687+ } else if (strncmp (strCmd, " ref_freq" , 8 ) == 0 ) {
688688 // Set frequency of the output reference signal [Hz]
689689 ref_freq = parseFloatInString (strCmd, 8 );
690690 noInterrupts ();
@@ -693,7 +693,7 @@ void loop() {
693693 interrupts ();
694694 Ser_data.println (ref_freq, 2 );
695695
696- } else if (strncmpi (strCmd, " ref_V_offset" , 12 ) == 0 ) {
696+ } else if (strncmp (strCmd, " ref_V_offset" , 12 ) == 0 ) {
697697 // Set voltage offset of cosine reference signal [V]
698698 ref_V_offset = parseFloatInString (strCmd, 12 );
699699 ref_V_offset = max (ref_V_offset, 0.0 );
@@ -703,7 +703,7 @@ void loop() {
703703 interrupts ();
704704 Ser_data.println (ref_V_offset, 3 );
705705
706- } else if (strncmpi (strCmd, " ref_V_ampl" , 10 ) == 0 ) {
706+ } else if (strncmp (strCmd, " ref_V_ampl" , 10 ) == 0 ) {
707707 // Set voltage amplitude of cosine reference signal [V]
708708 ref_V_ampl = parseFloatInString (strCmd, 10 );
709709 ref_V_ampl = max (ref_V_ampl, 0.0 );
0 commit comments