Skip to content

Commit 052c46d

Browse files
committed
Fix code style errors.
1 parent fc48e43 commit 052c46d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

drivers/Ethernet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ namespace mbed {
6262
* @endcode
6363
*/
6464
class
65-
MBED_DEPRECATED(
66-
"EthInterface is now the preferred way to get an Ethernet object. "
67-
"Alternatively, use NetworkInterface to get an instance of an appropriate network "
68-
"interface (WiFi or Ethernet)."
69-
) Ethernet : private NonCopyable<Ethernet> {
65+
MBED_DEPRECATED(
66+
"EthInterface is now the preferred way to get an Ethernet object. "
67+
"Alternatively, use NetworkInterface to get an instance of an appropriate network "
68+
"interface (WiFi or Ethernet)."
69+
) Ethernet : private NonCopyable<Ethernet> {
7070

7171
public:
7272

drivers/SPI.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class SPI : private NonCopyable<SPI> {
117117
*/
118118
SPI(PinName mosi, PinName miso, PinName sclk, PinName ssel = NC) :
119119
#if DEVICE_SPI_ASYNCH
120-
_irq(this),
120+
_irq(this),
121121
#endif
122122
_mosi(mosi),
123123
_miso(miso),
@@ -274,9 +274,9 @@ class SPI : private NonCopyable<SPI> {
274274
*/
275275
void clear_transfer_buffer()
276276
{
277-
#if TRANSACTION_QUEUE_SIZE_SPI
277+
#if TRANSACTION_QUEUE_SIZE_SPI
278278
_peripheral->transaction_buffer->reset();
279-
#endif
279+
#endif
280280
}
281281

282282
/** Clear the queue of transfers and abort the on-going transfer.

drivers/Serial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Serial : public SerialBase, public Stream, private NonCopyable<Serial> {
8787
* @note
8888
* Either tx or rx may be specified as NC (Not Connected) if unused
8989
*/
90-
Serial(PinName tx, PinName rx,int baud) : SerialBase(tx, rx, baud), Stream(NULL)
90+
Serial(PinName tx, PinName rx, int baud) : SerialBase(tx, rx, baud), Stream(NULL)
9191
{
9292
}
9393

drivers/internal/TimerEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TimerEvent : private NonCopyable<TimerEvent> {
3838
TimerEvent();
3939

4040
TimerEvent(const ticker_data_t *data)
41-
: event(), _ticker_data(data)
41+
: event(), _ticker_data(data)
4242
{
4343
ticker_set_handler(_ticker_data, (&TimerEvent::irq));
4444
}

0 commit comments

Comments
 (0)