Skip to content

Commit 1c02f52

Browse files
Make write_register public. (#65)
Make `write_register` public. This makes it more easy to load the patches from http://www.vlsi.fi/en/support/software/vs10xxpatches.html A discussion on further steps on support for "loading patches" opened here: #66
1 parent c5347c3 commit 1c02f52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/VS1053.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ class VS1053 {
100100

101101
uint16_t read_register(uint8_t _reg) const;
102102

103-
void write_register(uint8_t _reg, uint16_t _value) const;
104-
105103
void sdi_send_buffer(uint8_t *data, size_t len);
106104

107105
void sdi_send_fillers(size_t length);
@@ -165,6 +163,9 @@ class VS1053 {
165163

166164
// Clears SCI_DECODE_TIME register (sets 0x00)
167165
void clearDecodedTime();
166+
167+
// Made public to enable loading firmware patches in user code
168+
void write_register(uint8_t _reg, uint16_t _value) const;
168169
};
169170

170171
#endif

0 commit comments

Comments
 (0)