allow hasP25Space() to be overriden by derived classes [for possible future use];

pull/69/head
Bryan Biedenkapp 1 year ago
parent 849d54976b
commit e81e7752ed

@ -493,7 +493,7 @@ namespace modem
* @brief Helper to test if the P25 ring buffer has free space.
* @returns bool True, if the P25 ring buffer has free space, otherwise false.
*/
bool hasP25Space(uint32_t length) const;
virtual bool hasP25Space(uint32_t length) const;
/**
* @brief Helper to test if the NXDN ring buffer has free space.
* @returns bool True, if the NXDN ring buffer has free space, otherwise false.

@ -389,6 +389,13 @@ void ModemV24::close()
}
}
/* Helper to test if the P25 ring buffer has free space. */
bool ModemV24::hasP25Space(uint32_t length) const
{
return Modem::hasP25Space(length);
}
/* Writes raw data to the air interface modem. */
int ModemV24::write(const uint8_t* data, uint32_t length)

@ -278,6 +278,12 @@ namespace modem
*/
void close() override;
/**
* @brief Helper to test if the P25 ring buffer has free space.
* @returns bool True, if the P25 ring buffer has free space, otherwise false.
*/
bool hasP25Space(uint32_t length) const override;
/**
* @brief Writes raw data to the air interface modem.
* @param data Data to write to modem.

Loading…
Cancel
Save

Powered by TurnKey Linux.