mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-23 18:08:50 +01:00
Fixes #29 - Wind direction icon is 180 degrees off
This commit is contained in:
@@ -1000,7 +1000,7 @@ int windSpeedToBeaufort(float windSpeed) {
|
||||
}
|
||||
|
||||
String windDirectionIcon(int degrees) {
|
||||
String directions[] = {"\uf044", "\uf088", "\uf04d", "\uf057", "\uf058", "\uf087", "\uf048", "\uf043"};
|
||||
String directions[] = {"\uf058", "\uf087", "\uf048", "\uf043", "\uf044", "\uf088", "\uf04d", "\uf057"};
|
||||
int index = (degrees + 22) / 45;
|
||||
if (index >= 8) {
|
||||
index = 0;
|
||||
|
||||
Reference in New Issue
Block a user