From 26c483196aff4e582a8df14df3e040b24d4466b6 Mon Sep 17 00:00:00 2001 From: Kizarm Date: Sat, 20 Jan 2024 13:09:36 +0100 Subject: [PATCH] chain morse operator << --- morse.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/morse.cpp b/morse.cpp index 2ee9eed..45f327a 100644 --- a/morse.cpp +++ b/morse.cpp @@ -32,11 +32,11 @@ export class Morse { : unit (ms), led (pin) { sys::init (); } - void operator<< (const char * text) const; + const Morse & operator<< (const char * text) const; protected: void out (const morse_byte mb) const; }; -void Morse::operator<< (const char * text) const { +const Morse & Morse::operator<< (const char * text) const { const unsigned len = slen (text); for (unsigned n=0; n 1 x unit * - => 3 x unit