Skip to content

Commit

Permalink
Few changes to commenting
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Özcelikörs <mozcelikors@gmail.com>
  • Loading branch information
mozcelikors committed Mar 7, 2018
1 parent 841a2d8 commit 8fe2310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/roverapi/rover_pahomqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ int rover::RoverPahoMQTT::subscribe (void)
{
return -1;
}

}

int rover::RoverPahoMQTT::read (char* data)
Expand Down
8 changes: 4 additions & 4 deletions src/tasks/mqtt_publish_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ void *MQTT_Publish_Task (void * arg)
{
pthread_mutex_lock(&mqtt_client_lock);
if (rover_mqtt->publishToTelemetryTopic(sensor_data) == 0)
printf ("Client rover_mqtt_publisher: Publishing successful!\n");
printf ("Client rover_mqtt_publisher: Redirected Publishing successful!\n");
else
printf ("Client rover_mqtt_publisher: Publishing unsuccessful!\n");
printf ("Client rover_mqtt_publisher: Redirected Publishing unsuccessful!\n");
pthread_mutex_unlock(&mqtt_client_lock);
}
else // 0
{
pthread_mutex_lock(&mqtt_client_lock);
if (rover_mqtt->publishToTelemetryTopicNonRedirected(sensor_data) == 0)
printf ("Client rover_mqtt_publisher: Publishing successful!\n");
printf ("Client rover_mqtt_publisher: Nonredirected Publishing successful!\n");
else
printf ("Client rover_mqtt_publisher: Publishing unsuccessful!\n");
printf ("Client rover_mqtt_publisher: Nonredirected Publishing unsuccessful!\n");
pthread_mutex_unlock(&mqtt_client_lock);
}

Expand Down

0 comments on commit 8fe2310

Please sign in to comment.