From 597c22206cc2082bd25360b9ddec1ea87a8d981f Mon Sep 17 00:00:00 2001 From: Eric Duminil Date: Mon, 21 Dec 2020 12:18:42 +0100 Subject: [PATCH] F Strings --- co2_sensor.cpp | 2 +- led_effects.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/co2_sensor.cpp b/co2_sensor.cpp index af4807e..5eb0f7b 100644 --- a/co2_sensor.cpp +++ b/co2_sensor.cpp @@ -84,7 +84,7 @@ namespace sensor { static int16_t previous_co2 = 0; if (co2 > (previous_co2 - 30) && co2 < (previous_co2 + 30)) { stable_measurements++; - Serial.print("Stable since : "); + Serial.print(F("Number of stable measurements : ")); Serial.println(stable_measurements); waiting_color = color::green; } else { diff --git a/led_effects.cpp b/led_effects.cpp index 6eb91d3..3804ee1 100644 --- a/led_effects.cpp +++ b/led_effects.cpp @@ -182,7 +182,7 @@ namespace LedEffects { */ int countdownToZero() { if (config::night_mode) { - Serial.println("Night mode. Not doing anything."); + Serial.println(F("Night mode. Not doing anything.")); delay(1000); // Wait for a while, to avoid coming back to this function too many times when button is pressed. return 1; } -- GitLab