@@ -42,6 +42,8 @@ t_cliResult processCommand(char *cmdBuffer)
42
42
// These commands are not part of the CLI and allow quick testing without validity check
43
43
if ((strcmp (cmdBuffer, " x" ) == 0 ) || (strcmp (cmdBuffer, " exit" ) == 0 ))
44
44
{
45
+ if (settings.debugCLI == true )
46
+ systemPrintln (" Exiting CLI..." );
45
47
return (CLI_EXIT); // Exit command mode
46
48
}
47
49
else if (strcmp (cmdBuffer, " list" ) == 0 )
@@ -536,6 +538,9 @@ int commandLookupSettingName(bool inCommands, const char *settingName, char *tru
536
538
}
537
539
538
540
// Command not found
541
+ if (settings.debugCLI == true )
542
+ systemPrintf (" commandLookupSettingName: Command not found: %s\r\n " , settingName);
543
+
539
544
return COMMAND_UNKNOWN;
540
545
}
541
546
@@ -852,7 +857,7 @@ SettingValueResponse updateSettingWithValue(bool inCommands, const char *setting
852
857
853
858
#ifdef COMPILE_ZED
854
859
case tUbxConst: {
855
- // Covered by ttCmnCnst
860
+ // Covered by tCmnCnst
856
861
}
857
862
break ;
858
863
case tUbxMsgRt: {
@@ -2368,6 +2373,7 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2368
2373
qualifier = rtkSettingsEntries[i].qualifier ;
2369
2374
type = rtkSettingsEntries[i].type ;
2370
2375
var = rtkSettingsEntries[i].var ;
2376
+
2371
2377
switch (type)
2372
2378
{
2373
2379
default :
@@ -2483,18 +2489,23 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2483
2489
}
2484
2490
break ;
2485
2491
2486
- case tCmnCnst:
2487
- break ; // Nothing to do here. Let each GNSS add its settings
2488
- case tCmnRtNm:
2489
- break ; // Nothing to do here. Let each GNSS add its settings
2490
- case tCnRtRtB:
2491
- break ; // Nothing to do here. Let each GNSS add its settings
2492
- case tCnRtRtR:
2493
- break ; // Nothing to do here. Let each GNSS add its settings
2492
+ case tCmnCnst: {
2493
+
2494
+ #ifdef COMPILE_MOSAICX5
2495
+ for (int x = 0 ; x < MAX_MOSAIC_CONSTELLATIONS; x++)
2496
+ {
2497
+ if ((suffix[0 ] == mosaicSignalConstellations[x].configName [0 ]) &&
2498
+ (strcmp (suffix, mosaicSignalConstellations[x].configName ) == 0 ))
2499
+ {
2500
+ writeToString (settingValueStr, settings.mosaicConstellations [x]);
2501
+ knownSetting = true ;
2502
+ break ;
2503
+ }
2504
+ }
2505
+ #endif // COMPILE_MOSAICX5
2494
2506
2495
2507
#ifdef COMPILE_ZED
2496
- case tUbxConst: {
2497
- for (int x = 0 ; x < qualifier; x++)
2508
+ for (int x = 0 ; x < MAX_UBX_CONSTELLATIONS; x++)
2498
2509
{
2499
2510
if ((suffix[0 ] == settings.ubxConstellations [x].textName [0 ]) &&
2500
2511
(strcmp (suffix, settings.ubxConstellations [x].textName ) == 0 ))
@@ -2504,8 +2515,42 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2504
2515
break ;
2505
2516
}
2506
2517
}
2518
+ #endif // COMPILE_ZED
2519
+
2520
+ #ifdef COMPILE_UM980
2521
+ for (int x = 0 ; x < MAX_UM980_CONSTELLATIONS; x++)
2522
+ {
2523
+ if ((suffix[0 ] == um980ConstellationCommands[x].textName [0 ]) &&
2524
+ (strcmp (suffix, um980ConstellationCommands[x].textName ) == 0 ))
2525
+ {
2526
+ writeToString (settingValueStr, settings.um980Constellations [x]);
2527
+ knownSetting = true ;
2528
+ break ;
2529
+ }
2530
+ }
2531
+ #endif // COMPILE_UM980
2532
+
2533
+ #ifdef COMPILE_LG290P
2534
+ for (int x = 0 ; x < qualifier; x++)
2535
+ {
2536
+ if ((suffix[0 ] == lg290pConstellationNames[x][0 ]) && (strcmp (suffix, lg290pConstellationNames[x]) == 0 ))
2537
+ {
2538
+ writeToString (settingValueStr, settings.lg290pConstellations [x]);
2539
+ knownSetting = true ;
2540
+ break ;
2541
+ }
2542
+ }
2543
+ #endif // COMPILE_LG290P
2507
2544
}
2508
- break ;
2545
+ break ; // Nothing to do here. Let each GNSS add its settings
2546
+ case tCmnRtNm:
2547
+ break ; // Nothing to do here. Let each GNSS add its settings
2548
+ case tCnRtRtB:
2549
+ break ; // Nothing to do here. Let each GNSS add its settings
2550
+ case tCnRtRtR:
2551
+ break ; // Nothing to do here. Let each GNSS add its settings
2552
+
2553
+ #ifdef COMPILE_ZED
2509
2554
case tUbxMsgRt: {
2510
2555
for (int x = 0 ; x < qualifier; x++)
2511
2556
{
@@ -2674,19 +2719,6 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2674
2719
}
2675
2720
}
2676
2721
break ;
2677
- case tUmConst: {
2678
- for (int x = 0 ; x < qualifier; x++)
2679
- {
2680
- if ((suffix[0 ] == um980ConstellationCommands[x].textName [0 ]) &&
2681
- (strcmp (suffix, um980ConstellationCommands[x].textName ) == 0 ))
2682
- {
2683
- writeToString (settingValueStr, settings.um980Constellations [x]);
2684
- knownSetting = true ;
2685
- break ;
2686
- }
2687
- }
2688
- }
2689
- break ;
2690
2722
#endif // COMPILE_UM980
2691
2723
2692
2724
case tCorrSPri: {
@@ -2713,19 +2745,6 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2713
2745
break ;
2714
2746
2715
2747
#ifdef COMPILE_MOSAICX5
2716
- case tMosaicConst: {
2717
- for (int x = 0 ; x < qualifier; x++)
2718
- {
2719
- if ((suffix[0 ] == mosaicSignalConstellations[x].configName [0 ]) &&
2720
- (strcmp (suffix, mosaicSignalConstellations[x].configName ) == 0 ))
2721
- {
2722
- writeToString (settingValueStr, settings.mosaicConstellations [x]);
2723
- knownSetting = true ;
2724
- break ;
2725
- }
2726
- }
2727
- }
2728
- break ;
2729
2748
case tMosaicMSNmea: {
2730
2749
for (int x = 0 ; x < qualifier; x++)
2731
2750
{
@@ -2856,18 +2875,7 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2856
2875
}
2857
2876
}
2858
2877
break ;
2859
- case tLgConst: {
2860
- for (int x = 0 ; x < qualifier; x++)
2861
- {
2862
- if ((suffix[0 ] == lg290pConstellationNames[x][0 ]) && (strcmp (suffix, lg290pConstellationNames[x]) == 0 ))
2863
- {
2864
- writeToString (settingValueStr, settings.lg290pConstellations [x]);
2865
- knownSetting = true ;
2866
- break ;
2867
- }
2868
- }
2869
- }
2870
- break ;
2878
+
2871
2879
#endif // COMPILE_LG290P
2872
2880
2873
2881
case tGnssReceiver: {
@@ -2958,7 +2966,7 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2958
2966
2959
2967
if (knownSetting == false )
2960
2968
{
2961
- if (settings.debugWebServer )
2969
+ if (settings.debugWebServer || settings. debugCLI )
2962
2970
systemPrintf (" getSettingValue() Unknown setting: %s\r\n " , settingName);
2963
2971
}
2964
2972
0 commit comments