Skip to content

Commit cb656eb

Browse files
Don't print Running standalone message when local server connection succeeds
1 parent 707df85 commit cb656eb

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

ResourceManager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ SettingsManager* ResourceManager::GetSettingsManager()
425425
return(settings_manager);
426426
}
427427

428+
bool ResourceManager::GetDetectionEnabled()
429+
{
430+
return(detection_enabled);
431+
}
432+
428433
unsigned int ResourceManager::GetDetectionPercent()
429434
{
430435
return (detection_percent.load());

ResourceManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class ResourceManager: public ResourceManagerInterface
118118
void RegisterDetectionEndCallback(DetectionEndCallback new_callback, void * new_callback_arg);
119119
void RegisterI2CBusListChangeCallback(I2CBusListChangeCallback new_callback, void * new_callback_arg);
120120

121+
bool GetDetectionEnabled();
121122
unsigned int GetDetectionPercent();
122123
const char* GetDetectionString();
123124

main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ int main(int argc, char* argv[])
241241
\*---------------------------------------------------------*/
242242
if(!(ret_flags & RET_FLAG_NO_DETECT))
243243
{
244-
printf("Running standalone.\r\n");
244+
if(ResourceManager::get()->GetDetectionEnabled())
245+
{
246+
printf("Running standalone.\r\n");
247+
}
248+
245249
ResourceManager::get()->DetectDevices();
246250
}
247251

0 commit comments

Comments
 (0)