summaryrefslogtreecommitdiff
path: root/src/localtemp.cpp
diff options
context:
space:
mode:
authorketsuban_152 <webmaster@dangofacotry.net>2026-08-09 12:26:17 +0900
committerketsuban_152 <webmaster@dangofacotry.net>2026-08-09 12:26:17 +0900
commit6cc8243218edbee7a56a17f4f2513edfcf350738 (patch)
tree07d4ba61281184a3d25ddd93c6fefc3eba309c73 /src/localtemp.cpp
parent3d0a7e4adce1e050e309d90d1ee73ff784b704df (diff)
downloaddwgo-6cc8243218edbee7a56a17f4f2513edfcf350738.tar.gz
dwgo-6cc8243218edbee7a56a17f4f2513edfcf350738.tar.bz2
dwgo-6cc8243218edbee7a56a17f4f2513edfcf350738.zip
modified: src/MySock.cpp
modified: src/MySock.h modified: src/localtemp.cpp modified: src/localtemp.h
Diffstat (limited to 'src/localtemp.cpp')
-rw-r--r--src/localtemp.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/localtemp.cpp b/src/localtemp.cpp
index e6a5c2b..7f20dc7 100644
--- a/src/localtemp.cpp
+++ b/src/localtemp.cpp
@@ -127,12 +127,13 @@ void localtemp::get_ob_info(double precip10m)
{
mInfo.CB=false;
mInfo.fog=undef_fog; // Not reported by Amedas
+
if (precip10m>0.0)
{
- if (this->celsius<=2)
- mInfo.rain=snow;
- else
- mInfo.rain=rain;
+ if (this->celsius<=2)
+ mInfo.rain=snow;
+ else
+ mInfo.rain=rain;
mInfo.sky=undef_sky;
}
else