Previous 15994 Revisions Next

r4107 Sunday 11th January, 2009 at 17:25:29 UTC by Nathan Woods
Fixed DS1315 day-of-the-week bug (Sunday is 7 and not 0)
[src/mess/machine]ds1315.c

src/mess/machine/ds1315.c
r4106r4107
210210   raw[2] = dec_2_bcd(systime.local_time.minute);
211211   raw[3] = dec_2_bcd(systime.local_time.hour);
212212
213   raw[4] = dec_2_bcd(systime.local_time.weekday);
213   raw[4] = dec_2_bcd((systime.local_time.weekday != 0) ? systime.local_time.weekday : 7);
214214   raw[5] = dec_2_bcd(systime.local_time.mday);
215215   raw[6] = dec_2_bcd(systime.local_time.month + 1);
216216   raw[7] = dec_2_bcd(systime.local_time.year - 1900); /* Epoch is 1900 */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team