<commit_before>/*
 * This file is part of AVRThermostat.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

#define TIMER1_SHOW_TEMP_BIT    0
#define TIMER1_CONTROL_TEMP_BIT 1

#include <stdbool.h>
#include <stdint.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/io.h>

#include "buttons.h"
#include "display.h"
#include "config.h"
#include "ds18b20.h"
#include "iodef.h"

uint8_t timer1_status;
volatile uint16_t temp = 0xDEAD;

const uint8_t * const numbers = display_numbers_map;

/**
 * Разбивает значение, считанное из температурного регистра на рязряды и
 * заполняет регистр дисплея.
 */
static void fill_display_register(uint16_t temp)
{
	bool sign;
	uint8_t int_part, frac_numer;

	if (temp == DS18B20_ERROR) {
		display_register[3] = DISPLAY_CHAR_BLANK;<commit_msg>Make the main.c variables private<commit_after>/*
 * This file is part of AVRThermostat.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

#define TIMER1_SHOW_TEMP_BIT    0
#define TIMER1_CONTROL_TEMP_BIT 1

#include <stdbool.h>
#include <stdint.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/io.h>

#include "buttons.h"
#include "display.h"
#include "config.h"
#include "ds18b20.h"
#include "iodef.h"

static uint8_t timer1_status;
static volatile uint16_t temp = 0xDEAD;

static const uint8_t * const numbers = display_numbers_map;

/**
 * Разбивает значение, считанное из температурного регистра на рязряды и
 * заполняет регистр дисплея.
 */
static void fill_display_register(uint16_t temp)
{
	bool sign;
	uint8_t int_part, frac_numer;

	if (temp == DS18B20_ERROR) {
		display_register[3] = DISPLAY_CHAR_BLANK;
{'fraction_non_alphanumeric': 0.10739341608202914, 'fraction_numerical': 0.023745277927684834, 'mean_word_length': 4.848580441640379, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1153335', 'n_tokens_mistral': 735, 'n_tokens_neox': 728, 'n_words': 190}