This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| test_crash_limits() -> | |
| %% Trap exits so this test doesn't shutdown with the supervisor | |
| process_flag(trap_exit, true), | |
| Intensity = 2, | |
| Period = 5, | |
| {ok, SupPid} = supervisor:start_link( | |
| {local, test_crash_limits}, ?MODULE, {test_crash_limits, Intensity, Period, self()} | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % | |
| % This file is part of AtomVM. | |
| % | |
| % Copyright 2024 Davide Bettio <davide@uninstall.it> | |
| % | |
| % Licensed under the Apache License, Version 2.0 (the "License"); | |
| % you may not use this file except in compliance with the License. | |
| % You may obtain a copy of the License at | |
| % | |
| % http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Attiny85_batteryMonitor | |
| Ideas borrowed from: https://github.com/unixbigot/Flat-Mate | |
| modified for arduino tiny core by DWhacks | |
| *@@ Voltage trigger levels. | |
| * |