Skip to content

Commit

Permalink
Bug fixes and add support for ZC pin of JSY-Mk-194T
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Nov 9, 2024
1 parent e75c945 commit dbf58a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ jobs:
uses: softprops/action-gh-release@v2
with:
body: ${{steps.github_release.outputs.changelog}}
make_latest: true
draft: false
prerelease: false
files: |
artifacts/*.bin
artifacts/*.elf
Expand Down
8 changes: 4 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ lib_deps =
mathieucarbou/MycilaLogger @ 3.2.0
mathieucarbou/MycilaMQTT @ 4.2.2
mathieucarbou/MycilaNTP @ 5.0.1
mathieucarbou/MycilaPulseAnalyzer @ 2.3.6
; https://github.com/mathieucarbou/MycilaPulseAnalyzer
mathieucarbou/MycilaPulseAnalyzer @ 2.4.0
mathieucarbou/MycilaPZEM004Tv3 @ 5.0.0
mathieucarbou/MycilaRelay @ 4.0.1
mathieucarbou/MycilaSystem @ 3.1.0
Expand Down Expand Up @@ -146,8 +145,9 @@ build_flags =
-Og
; -Os
-D CONFIG_ARDUHAL_LOG_COLORS
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
build_unflags =
-std=gnu++11

Expand Down
4 changes: 2 additions & 2 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ float detectGridFrequency() {
return frequency;

frequency = round(pzemO1.data.frequency);
if (frequency)
if (!isnanf(frequency) && frequency)
return frequency;

frequency = round(pzemO2.data.frequency);
if (frequency)
if (!isnanf(frequency) && frequency)
return frequency;

frequency = config.get(KEY_GRID_FREQUENCY).toInt();
Expand Down

0 comments on commit dbf58a9

Please sign in to comment.