Skip to content

Commit

Permalink
0.8.67
Browse files Browse the repository at this point in the history
* fix HMS frequency
* fix display of inverter id in serial log (was displayed twice)
  • Loading branch information
lumapu committed Jan 29, 2024
1 parent 7655abc commit 6b30565
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Development Changes

## 0.8.67 - 2024-01-29
* fix HMS frequency
* fix display of inverter id in serial log (was displayed twice)

## 0.8.66 - 2024-01-28
* added support for other regions - untested #1271
* fix generation of DTU-ID; was computed twice without reset if two radios are enabled
Expand Down Expand Up @@ -169,7 +173,7 @@

## 0.8.37 - 2023-12-30
* added grid profiles
* format version of grid profile
* format version of grid profile

# RELEASE 0.8.36 - 2023-12-30

Expand Down
2 changes: 1 addition & 1 deletion src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 66
#define VERSION_PATCH 67

//-------------------------------------
typedef struct {
Expand Down
1 change: 0 additions & 1 deletion src/hm/Communication.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ class Communication : public CommQueue<> {
int8_t rssi = -127;
uint8_t len = 0;

DPRINT_IVID(DBG_INFO, q->iv->id);
for(uint8_t i = 0; i < mMaxFrameId; i++) {
if(mLocalBuf[i].len + len > MAX_BUFFER) {
DPRINTLN(DBG_ERROR, F("payload buffer to small!"));
Expand Down
6 changes: 3 additions & 3 deletions src/hms/cmt2300a.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class Cmt2300a {
if((freqKhz < range.first) || (freqKhz > range.second))
return 0xff; // error

return (freqKhz - getBaseFreqMhz()) / FREQ_STEP_KHZ;
return (freqKhz - getBaseFreqMhz() * 1000) / FREQ_STEP_KHZ;
}

inline void switchChannel(uint8_t ch) {
Expand All @@ -369,9 +369,9 @@ class Cmt2300a {

inline uint32_t getFreqKhz(void) {
if(0xff != mRqstCh)
return getBaseFreqMhz() + (mRqstCh * FREQ_STEP_KHZ);
return getBaseFreqMhz() * 1000 + (mRqstCh * FREQ_STEP_KHZ);
else
return getBaseFreqMhz() + (mCurCh * FREQ_STEP_KHZ);
return getBaseFreqMhz() * 1000 + (mCurCh * FREQ_STEP_KHZ);
}

uint8_t getCurrentChannel(void) {
Expand Down

0 comments on commit 6b30565

Please sign in to comment.