a7179f5b77ab2b4bdad60477055893ca6a13f865
The functionality of timer0 and timer2 are switched between ATmega64/128 and 641/1281/2561. When compiled for ATmega2561, this commit sets up timer0 in the same way as timer2 on ATmega64/128 (phase correct PWM, clk/64 count rate, inverted if SP22 is defined). The previous quick fix had a typo in the initialization of TCCR0B (0b111 is an invalid value for the clock select bits CS2:0). It also did not respect the SP22 define which indicates the PWM must be inverted. Smartieparts v2.2 or later programmer boards have an inverted backlight driver. Finally, it is unnecessary to set DDB7 as it is already set in boardInit() (line 101).
##OpenTX Next Branch
You have found your way to the GitHub repository site for the OpenTX Next Branch. This code branch holds the source code for the ongoing development.
The stable release code is not here, it is in the master branch.
Under no circumstances build and use software from this branch for real world application. At times you will be more or less guaranteed to crash your plane and destroy all your model settings.
Refer to the opentx.wiki for information about setting up the tool chains for building OpenTX and OpenTX Companion as well as other development related issues.
Languages
C
71.9%
C++
25.4%
Python
0.9%
CMake
0.6%
Shell
0.3%
Other
0.7%