avr: more work on MultiFAN module (now works, tested with a single fan).

This commit is contained in:
Martin Preuss
2026-07-05 23:15:06 +02:00
parent 9842d8a2e5
commit a5559770ef
5 changed files with 134 additions and 13 deletions

View File

@@ -86,10 +86,19 @@ AppReportSensors_OnEverySecond_store:
breq AppReportSensors_OnEverySecond_sendValue2
#endif
#ifdef MODULES_SGP40
#ifdef MODULES_MULTIFAN
cpi r16, 32
breq AppReportSensors_OnEverySecond_sendValueMF1
cpi r16, 33
breq AppReportSensors_OnEverySecond_sendValueMF2
cpi r16, 34
breq AppReportSensors_OnEverySecond_sendValueMF3
#endif
#ifdef MODULES_SGP40
cpi r16, 53
breq AppReportSensors_OnEverySecond_measureValue4
cpi r16, 42
cpi r16, 63
breq AppReportSensors_OnEverySecond_sendValue4
#endif
@@ -145,6 +154,15 @@ AppReportSensors_OnEverySecond_sendValue3:
rjmp Ds18b20_SendTemperature
#endif
#ifdef MODULES_MULTIFAN
AppReportSensors_OnEverySecond_sendValueMF1:
bigjmp MultiFan_ReportSpeed1
AppReportSensors_OnEverySecond_sendValueMF2:
bigjmp MultiFan_ReportSpeed2
AppReportSensors_OnEverySecond_sendValueMF3:
bigjmp MultiFan_ReportSpeed3
#endif
#ifdef MODULES_SGP40
AppReportSensors_OnEverySecond_measureValue4:
rjmp SGP40_MeasureRawSignal
@@ -182,6 +200,7 @@ AppReportSensors_OnEverySecond_sendMotionValue:
rjmp appMotionSendValue
#endif
; @end