Hi, it’s me again having trouble getting things done by myself…
I gave the “S7”-firmware a try, because I wanted off-time memory an a nanjg driver without adding an otc.
Basically I wanted a very simple UI. Three modes, high to low, off-time-no-memory. I know I could have gone with “star_noinit” for this, but I like the battery indication mode that’s in the S7 firmware. So I tried to change the S7 firmware to high, med, low, battcheck mode.
I really have no coding skills at all. Just getting started with this. I managed to get the modes like I wanted them.
changed modes array to
In the main, I commented out all “else if”s after SOLID_MODES except the last one for the BATT_CHECK_MODE.
But now I have no clue how I have to change the part after #ifdef VOLTAGE_MON to make the lvp work as it should. I suppose I have to change something there, right? Because I changed the mode order to high, med, low, battcheck, the lvp would step into high when triggered if I leave it that way, right?
Should I change
if (voltage < ((mode_idx == 0 ) ? ADC_CRIT : ADC_LOW)) {
to
if (voltage < ((mode_idx == 2) ? ADC_CRIT : ADC_LOW)) {
and
if (lowbatt_cnt >= 3) {
if (mode_idx > 0 ) {
mode_idx = 0;
to
if (lowbatt_cnt >= 3) {
if (mode_idx != 2 ) {
mode_idx = 2;
???
Please let me know how stupid my approach is, but don’t be too harsh, I am really new to this stuff…
By the way, I managed to build a FET+7135-driver with BLF-A6-firmware. Really nice firmware! But I strongly recommend using it with a reverse clicky, because until now I’m using it with a forward clicky and I feel it was much more intuitive with a reverse clicky.