summaryrefslogtreecommitdiff
path: root/src/arch/esp8266/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/esp8266/driver')
-rw-r--r--src/arch/esp8266/driver/stdout.cc16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/arch/esp8266/driver/stdout.cc b/src/arch/esp8266/driver/stdout.cc
index d8e07a8..c4f0abc 100644
--- a/src/arch/esp8266/driver/stdout.cc
+++ b/src/arch/esp8266/driver/stdout.cc
@@ -67,7 +67,19 @@ StandardOutput & StandardOutput::operator<<(long number)
return *this;
}
-StandardOutput & StandardOutput::operator<<(unsigned long long number)
+StandardOutput & StandardOutput::operator<<(float number)
+{
+ printf_float(number);
+ return *this;
+}
+
+StandardOutput & StandardOutput::operator<<(double number)
+{
+ printf_float(number);
+ return *this;
+}
+
+ICACHE_FLASH_ATTR StandardOutput & StandardOutput::operator<<(unsigned long long number)
{
switch (base) {
case 2:
@@ -164,7 +176,7 @@ void StandardOutput::printf_uint8(uint8_t num)
put(format_hex_nibble(num % 16));
}
-void StandardOutput::printf_float(float num)
+ICACHE_FLASH_ATTR void StandardOutput::printf_float(float num)
{
if (num < 0) {
put('-');