Serial, QSPI: Fix style

pull/11892/head
Przemyslaw Stekiel 2019-10-25 08:55:58 +02:00
parent 933e77414d
commit 7db99341fa
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public:
* Either tx or rx may be specified as NC (Not Connected) if unused
*/
Serial(const serial_pinmap_t &explicit_pinmap, const char *name = NULL, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
Serial(const serial_pinmap_t &&, const char* = NULL, int = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) = delete; // prevent passing of temporary objects
Serial(const serial_pinmap_t &&, const char * = NULL, int = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) = delete; // prevent passing of temporary objects
/** Create a Serial port, connected to the specified transmit and receive pins, with the specified baud
*

View File

@ -89,7 +89,7 @@ QSPI::QSPI(const qspi_pinmap_t &pinmap, int mode) : _qspi()
_init_func = &QSPI::_initialize_direct;
//Go ahead init the device here with the default config
bool success = (this->*_init_func)();
bool success = (this->*_init_func)();
MBED_ASSERT(success);
}