mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-10 15:57:00 +01:00
Moyoung: Fix weather forecast being one day off
This commit is contained in:
parent
6ae82e2218
commit
9cd5bb5569
@ -1499,7 +1499,10 @@ public class MoyoungDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
packetWeatherToday.put(weatherToday.city.getBytes("unicodebigunmarked"));
|
packetWeatherToday.put(weatherToday.city.getBytes("unicodebigunmarked"));
|
||||||
sendPacket(builder, MoyoungPacketOut.buildPacket(mtu, MoyoungConstants.CMD_SET_WEATHER_TODAY, packetWeatherToday.array()));
|
sendPacket(builder, MoyoungPacketOut.buildPacket(mtu, MoyoungConstants.CMD_SET_WEATHER_TODAY, packetWeatherToday.array()));
|
||||||
|
|
||||||
ByteBuffer packetWeatherForecast = ByteBuffer.allocate(7 * 3);
|
ByteBuffer packetWeatherForecast = ByteBuffer.allocate(8 * 3);
|
||||||
|
packetWeatherForecast.put(weatherToday.conditionId);
|
||||||
|
packetWeatherForecast.put(weatherToday.currentTemp);
|
||||||
|
packetWeatherForecast.put(weatherToday.currentTemp);
|
||||||
for(int i = 0; i < 7; i++)
|
for(int i = 0; i < 7; i++)
|
||||||
{
|
{
|
||||||
MoyoungWeatherForecast forecast;
|
MoyoungWeatherForecast forecast;
|
||||||
|
Loading…
Reference in New Issue
Block a user