mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 00:29:33 +00:00
Fixed messup after last squashed commits
This commit is contained in:
@@ -81,18 +81,10 @@ void make_4A_group(uint32_t blocks[], const uint16_t PI_code, const bool TP, con
|
||||
const uint8_t hour, const uint8_t minute, const int8_t local_offset) {
|
||||
uint32_t L = 0;
|
||||
uint32_t day_code;
|
||||
|
||||
<<<<<<< HEAD
|
||||
// 57723
|
||||
|
||||
|
||||
if ((month == 1) || (month == 2)) L = 1;
|
||||
|
||||
day_code = 14956 + day + (uint32_t)((float)(year - 1900 - L) * 365.25) + uint16_t((float)((month + 1) + L * 12) * 30.6001);
|
||||
=======
|
||||
if ((month == 1) || (month == 2)) L = 1;
|
||||
|
||||
day_code = 14956 + day + (uint32_t)((float)(year - L) * 365.25) + uint16_t(((month + 1) * L * 12) * 30.6001);
|
||||
>>>>>>> d402a87... RDS radiotext and time group generators
|
||||
|
||||
blocks[0] = PI_code;
|
||||
blocks[1] = (0x4 << 12) | (0 << 11) | (b2b(TP) << 10) | ((PTY & 0x1F) << 5) | ((day_code & 0x18000) >> 15);
|
||||
@@ -106,11 +98,7 @@ uint16_t gen_PSN(const char * psname, const RDS_flags * rds_flags) {
|
||||
|
||||
// 4 groups with 2 PSN characters in each
|
||||
for (c = 0; c < 4; c++)
|
||||
<<<<<<< HEAD
|
||||
make_0B_group(&group[c][0], rds_flags->PI_code, rds_flags->TP, rds_flags->PTY, rds_flags->TA, rds_flags->MS, rds_flags->DI, c, &psname[c * 2]);
|
||||
=======
|
||||
make_0B_group(&group[c][0], rds_flags->PI_code, rds_flags->TP, rds_flags->PTY, rds_flags->TA, rds_flags->MS, rds_flags->DI, c, &psname[c * 2]);
|
||||
>>>>>>> d402a87... RDS radiotext and time group generators
|
||||
|
||||
// Generate checkbits for each block of each group
|
||||
for (c = 0; c < 4; c++) {
|
||||
@@ -187,11 +175,7 @@ uint16_t gen_ClockTime(const RDS_flags * rds_flags,
|
||||
group[2] = makeblock(group[2], RDS_OFFSET_C);
|
||||
group[3] = makeblock(group[3], RDS_OFFSET_D);
|
||||
|
||||
<<<<<<< HEAD
|
||||
uint32_t * tx_data_u32 = (uint32_t*)shared_memory.bb_data.data;
|
||||
=======
|
||||
uint32_t * tx_data_u32 = (uint32_t*)shared_memory.tx_data;
|
||||
>>>>>>> d402a87... RDS radiotext and time group generators
|
||||
|
||||
// Copy to tx_data for baseband
|
||||
for (c = 0; c < 4; c++)
|
||||
|
||||
Reference in New Issue
Block a user