]> bicyclesonthemoon.info Git - staf/staf/commitdiff
fix calibration main v2.3
authorb <rowerynaksiezycu@gmail.com>
Sun, 3 Jan 2021 14:48:14 +0000 (15:48 +0100)
committerb <rowerynaksiezycu@gmail.com>
Sun, 3 Jan 2021 14:48:14 +0000 (15:48 +0100)
main.c

diff --git a/main.c b/main.c
index 53eb7a93ad44c58347ab6b9a56cce930a5bdc9e2..0bab5d5b81536c5a9fd32b9c023f33aa6597f6cc 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,9 +1,9 @@
-// SilentTimer Action Figure software, v2.2
+// SilentTimer Action Figure software, v2.3
 // main.c
 // The main c file.
 // 
 // main.c
 // The main c file.
 // 
-// 14.12.2020
-// Copyright (C) 2014-2017, 2020  Balthasar Szczepański
+// 03.01.2021
+// Copyright (C) 2014-2017, 2020-2021  Balthasar Szczepański
 // 
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // 
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -993,7 +993,7 @@ void showvalue () //determine what to show on display
                        break;
                case MODE_VER:
                        dispvalue[4] = SYMB_NUL;
                        break;
                case MODE_VER:
                        dispvalue[4] = SYMB_NUL;
-                       dispvalue[5] = SYMB_2;
+                       dispvalue[5] = SYMB_3;
                        dispvalue[6] = SYMB_2;
                        dispvalue[7] = SYMB_NUL;
                        dot |= 0x02; //.
                        dispvalue[6] = SYMB_2;
                        dispvalue[7] = SYMB_NUL;
                        dot |= 0x02; //.
@@ -1200,7 +1200,7 @@ int main( void )
        //spi(RTC_READ,0x08,inbuf,outbuf,1);
        outbuf[0]=
                0x40| //squarewave enable
        //spi(RTC_READ,0x08,inbuf,outbuf,1);
        outbuf[0]=
                0x40| //squarewave enable
-               0x04; //1Hz
+               0x00; //1Hz
        //no hardware alarms :(
        spi(RTC_WRITE,0x08,inbuf,outbuf,1);
        
        //no hardware alarms :(
        spi(RTC_WRITE,0x08,inbuf,outbuf,1);
        
@@ -1722,7 +1722,7 @@ int main( void )
                                                sendhex(run);
                                                break;
                                        case 'M': //get version
                                                sendhex(run);
                                                break;
                                        case 'M': //get version
-                                               sendhex(2); //vL
+                                               sendhex(3); //vL
                                                sendhex(2); //vH
                                                break;
                                        case 'N': //get pinout
                                                sendhex(2); //vH
                                                break;
                                        case 'N': //get pinout