mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
[FSD] In order to get the UNIT tests working, we need to call the "FSD direct message" send function
* added sendDirectMessage and renamed other function to sendQueudedMessage * UNIT tests call "direct message" sending * minor style changes
This commit is contained in:
committed by
Mat Sutcliffe
parent
f6f719a67e
commit
3a4f114308
@@ -248,11 +248,23 @@ namespace BlackCore
|
||||
|
||||
//! Message send to FSD
|
||||
template <class T>
|
||||
void sendMessage(const T &message)
|
||||
void sendQueudedMessage(const T &message)
|
||||
{
|
||||
if (!message.isValid()) { return; }
|
||||
if (m_unitTestMode)
|
||||
{
|
||||
this->sendDirectMessage(message);
|
||||
return;
|
||||
}
|
||||
m_queuedFsdMessages.enqueue(messageToFSDString(message));
|
||||
// this->sendMessageString(messageToFSDString(message));
|
||||
}
|
||||
|
||||
//! Message send to FSD
|
||||
template <class T>
|
||||
void sendDirectMessage(const T &message)
|
||||
{
|
||||
if (!message.isValid()) { return; }
|
||||
this->sendMessageString(messageToFSDString(message));
|
||||
}
|
||||
|
||||
//! Unit test/debug functions @{
|
||||
|
||||
Reference in New Issue
Block a user