Add multitone support for loudspeaker

This commit is contained in:
2020-05-24 23:35:17 +02:00
parent e97092042b
commit 355e81ba44
3 changed files with 66 additions and 11 deletions

View File

@@ -259,7 +259,7 @@ int main()
oven_driver_set_power(0U);
/* Activate loundspeaker permanently */
loudspeaker_set(1);
loudspeaker_set(100);
} else if (pid_controller_active) {
/* In case temperature measuremnt is okay and controlelr is working, write output power */
oven_driver_set_power(pid_controller_output < 0 ? 0U : (uint8_t)pid_controller_output);